1
0
Ver Fonte

boot.js: Treat 'arguments' as keyword. Fix #1114.

Herbert Vojčík há 10 anos atrás
pai
commit
d81ce77fda
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      support/boot.js

+ 2 - 0
support/boot.js

@@ -806,6 +806,8 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 							'default', 'delete', 'do', 'else', 'finally', 'for', 'function',
 							'default', 'delete', 'do', 'else', 'finally', 'for', 'function',
 							'if', 'in', 'instanceof', 'new', 'return', 'switch', 'this', 'throw',
 							'if', 'in', 'instanceof', 'new', 'return', 'switch', 'this', 'throw',
 							'try', 'typeof', 'var', 'void', 'while', 'with',
 							'try', 'typeof', 'var', 'void', 'while', 'with',
+							// Amber protected words: these should not be compiled as-is when in code
+							'arguments',
 							// ES5: future use: http://es5.github.com/#x7.6.1.2
 							// ES5: future use: http://es5.github.com/#x7.6.1.2
 							'class', 'const', 'enum', 'export', 'extends', 'import', 'super',
 							'class', 'const', 'enum', 'export', 'extends', 'import', 'super',
 							// ES5: future use in strict mode
 							// ES5: future use in strict mode