mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-27 05:37:45 +00:00
Fix all string throw statements
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user