Missing some reserved words

This commit is contained in:
Yehuda Katz
2011-12-31 15:41:16 -08:00
parent 730c2617af
commit 17cdb0091b
+17 -3
View File
@@ -740,9 +740,23 @@ Handlebars.JavaScriptCompiler = function() {};
}
};
var reservedWords = ("break case catch continue default delete do else finally " +
"for function if in instanceof new return switch this throw " +
"try typeof var void while with null true false").split(" ");
var reservedWords = (
"break else new var" +
"case finally return void" +
"catch for switch while" +
"continue function this with" +
"default if throw" +
"delete in try" +
"do instanceof typeof" +
"abstract enum int short" +
"boolean export interface static" +
"byte extends long super" +
"char final native synchronized" +
"class float package throws" +
"const goto private transient" +
"debugger implements protected volatile" +
"double import public let yield"
).split(" ");
var compilerWords = JavaScriptCompiler.RESERVED_WORDS = {};