mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Fix all string throw statements
This commit is contained in:
parent
91d8f34d7f
commit
d2770b6482
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue