Fix all string throw statements

This commit is contained in:
Felix Becker 2017-06-21 18:14:31 +02:00
parent 91d8f34d7f
commit d2770b6482

View file

@ -14,7 +14,7 @@ function adaptInjectionScope(grammar) {
var injections = grammar.injections;
var injection = injections[oldInjectionKey];
if (!injections) {
throw "Can not find PHP injection";
throw new Error("Can not find PHP injection");
}
delete injections[oldInjectionKey];
injections[newInjectionKey] = injection;