mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-03-29 00:09:01 +08:00
updated list of JavaScript keywords
This commit is contained in:
@@ -48,10 +48,11 @@ function setter(instance, path, value){
|
||||
var getterFnCache = {};
|
||||
var JS_KEYWORDS = {};
|
||||
foreach(
|
||||
["break", "const", "continue", "class", "delete",
|
||||
"do", "while", "for", "function", "if",
|
||||
"instanceof", "new", "return", "switch",
|
||||
"this", "throw", "try", "catch", "with"],
|
||||
["abstract", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue", "debugger", "default",
|
||||
"delete", "do", "double", "else", "enum", "export", "extends", "false", "final", "finally", "float", "for", "function", "goto",
|
||||
"if", "implements", "import", "ininstanceof", "intinterface", "long", "native", "new", "null", "package", "private",
|
||||
"protected", "public", "return", "short", "static", "super", "switch", "synchronized", "this", "throw", "throws",
|
||||
"transient", "true", "try", "typeof", "var", "volatile", "void", "while", "with"],
|
||||
function(key){ JS_KEYWORDS[key] = true;}
|
||||
);
|
||||
function getterFn(path){
|
||||
|
||||
Reference in New Issue
Block a user