fix typo, and change a list to string for more efficient compression.

This commit is contained in:
Misko Hevery 2010-10-31 11:24:20 -07:00
parent 9a532002cf
commit ba5f8ee27f
2 changed files with 6 additions and 6 deletions

View file

@ -16,7 +16,7 @@ var manualUppercase = function (s) {
};
if ('i' !== 'I'.toLowerCase()) {
lowercase = manualLowercase;
uppercase = manulaUppercase;
uppercase = manualUppercase;
}
function fromCharCode(code) { return String.fromCharCode(code); }

View file

@ -49,11 +49,11 @@ var scopeId = 0,
compileCache = {},
JS_KEYWORDS = {};
foreach(
["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", $undefined, "while", "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,undefined,while,with").split(/,/),
function(key){ JS_KEYWORDS[key] = true;}
);
function getterFn(path){