Bladeren bron

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

Herbert Vojčík 10 jaren geleden
bovenliggende
commit
d81ce77fda
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  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