Changeset 106198 in webkit
- Timestamp:
- Jan 29, 2012 12:23:48 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106194 r106198 1 2012-01-28 Gavin Barraclough <barraclough@apple.com> 2 3 Reserve 'let' 4 https://bugs.webkit.org/show_bug.cgi?id=77293 5 6 Rubber stamped by Oliver Hunt. 7 8 'let' may become a keyword in ES6. We're going to try experimentally reserving it, 9 to see if this breaks the web. 10 11 * fast/js/keywords-and-reserved_words-expected.txt: 12 * fast/js/reserved-words-as-property-expected.txt: 13 * fast/js/reserved-words-strict-expected.txt: 14 * fast/js/script-tests/keywords-and-reserved_words.js: 15 * fast/js/script-tests/reserved-words-as-property.js: 16 * fast/js/script-tests/reserved-words-strict.js: 17 1 18 2012-01-28 Levi Weintraub <leviw@chromium.org> 2 19 -
trunk/LayoutTests/fast/js/keywords-and-reserved_words-expected.txt
r89109 r106198 61 61 PASS classifyIdentifier("implements") is "strict" 62 62 PASS classifyIdentifier("interface") is "strict" 63 PASS classifyIdentifier("let") is " strict"63 PASS classifyIdentifier("let") is "keyword" 64 64 PASS classifyIdentifier("package") is "strict" 65 65 PASS classifyIdentifier("private") is "strict" -
trunk/LayoutTests/fast/js/reserved-words-as-property-expected.txt
r104750 r106198 1336 1336 PASS "use strict";({ get implements(){}, set implements(){}, parsedOkay: 42 }.parsedOkay === 42) is true 1337 1337 PASS (function(){"use strict";({ get implements(){}, set implements(){}, parsedOkay: 42 }.parsedOkay === 42)}); true is true 1338 PASS var let; true is true1339 PASS (function(){var let; true}); true is true1340 PASS var let = 42; let === 42 is true1341 PASS (function(){var let = 42; let === 42}); true is true1342 PASS function g(let){ }; true is true1343 PASS (function(){function g(let){ }; true}); true is true1344 PASS /let/.test(function g(let){ }) is true1345 PASS (function(){/let/.test(function g(let){ })}); true is true1346 PASS try{}catch(let){}; true is true1347 PASS (function(){try{}catch(let){}; true}); true is true1348 PASS function let(){ }; true is true1349 PASS (function(){function let(){ }; true}); true is true1350 PASS ({ "let": 42 }.let === 42) is true1351 PASS (function(){({ "let": 42 }.let === 42)}); true is true1352 PASS ({ let: 42 }.let === 42) is true1353 PASS (function(){({ let: 42 }.let === 42)}); true is true1354 PASS ({ get let(){}, set let(){}, parsedOkay: 42 }.parsedOkay === 42) is true1355 PASS (function(){({ get let(){}, set let(){}, parsedOkay: 42 }.parsedOkay === 42)}); true is true1356 PASS "use strict";var let; true threw exception SyntaxError: Use of reserved word 'let' in strict mode.1357 PASS (function(){"use strict";var let; true}); true threw exception SyntaxError: Use of reserved word 'let' in strict mode.1358 PASS "use strict";var let = 42; let === 42 threw exception SyntaxError: Use of reserved word 'let' in strict mode.1359 PASS (function(){"use strict";var let = 42; let === 42}); true threw exception SyntaxError: Use of reserved word 'let' in strict mode.1360 PASS "use strict";function g(let){ "use strict"; }; true threw exception SyntaxError: Use of reserved word 'let' in strict mode.1361 PASS (function(){"use strict";function g(let){ "use strict"; }; true}); true threw exception SyntaxError: Use of reserved word 'let' in strict mode.1362 PASS "use strict";/let/.test(function g(let){ "use strict"; }) threw exception SyntaxError: Use of reserved word 'let' in strict mode.1363 PASS (function(){"use strict";/let/.test(function g(let){ "use strict"; })}); true threw exception SyntaxError: Use of reserved word 'let' in strict mode.1364 PASS "use strict";try{}catch(let){}; true threw exception SyntaxError: Use of reserved word 'let' in strict mode.1365 PASS (function(){"use strict";try{}catch(let){}; true}); true threw exception SyntaxError: Use of reserved word 'let' in strict mode.1366 PASS "use strict";function let(){ "use strict"; }; true threw exception SyntaxError: Use of reserved word 'let' in strict mode.1367 PASS (function(){"use strict";function let(){ "use strict"; }; true}); true threw exception SyntaxError: Use of reserved word 'let' in strict mode.1368 PASS "use strict";({ "let": 42 }.let === 42) is true1369 PASS (function(){"use strict";({ "let": 42 }.let === 42)}); true is true1370 PASS "use strict";({ let: 42 }.let === 42) is true1371 PASS (function(){"use strict";({ let: 42 }.let === 42)}); true is true1372 PASS "use strict";({ get let(){}, set let(){}, parsedOkay: 42 }.parsedOkay === 42) is true1373 PASS (function(){"use strict";({ get let(){}, set let(){}, parsedOkay: 42 }.parsedOkay === 42)}); true is true1374 1338 PASS var private; true is true 1375 1339 PASS (function(){var private; true}); true is true -
trunk/LayoutTests/fast/js/reserved-words-strict-expected.txt
r90535 r106198 7 7 PASS isReserved('implements') is true 8 8 PASS isReserved('interface') is true 9 PASS isReserved('let') is true10 9 PASS isReserved('package') is true 11 10 PASS isReserved('private') is true -
trunk/LayoutTests/fast/js/script-tests/keywords-and-reserved_words.js
r98407 r106198 105 105 shouldBe('classifyIdentifier("implements")', '"strict"'); 106 106 shouldBe('classifyIdentifier("interface")', '"strict"'); 107 shouldBe('classifyIdentifier("let")', '" strict"');107 shouldBe('classifyIdentifier("let")', '"keyword"'); // Experimentally reserving this; this may be reserved in ES6. 108 108 shouldBe('classifyIdentifier("package")', '"strict"'); 109 109 shouldBe('classifyIdentifier("private")', '"strict"'); -
trunk/LayoutTests/fast/js/script-tests/reserved-words-as-property.js
r98407 r106198 7 7 var strictReservedWords = [ 8 8 "implements", 9 "let",10 9 "private", 11 10 "public", -
trunk/LayoutTests/fast/js/script-tests/reserved-words-strict.js
r98407 r106198 15 15 var reservedWords = [ 16 16 "implements", 17 "let",18 17 "private", 19 18 "public", -
trunk/Source/JavaScriptCore/ChangeLog
r106197 r106198 1 2012-01-28 Gavin Barraclough <barraclough@apple.com> 2 3 Reserve 'let' 4 https://bugs.webkit.org/show_bug.cgi?id=77293 5 6 Rubber stamped by Oliver Hunt. 7 8 'let' may become a keyword in ES6. We're going to try experimentally reserving it, 9 to see if this breaks the web. 10 11 * parser/Keywords.table: 12 1 13 2012-01-27 Gavin Barraclough <barraclough@apple.com> 2 14 -
trunk/Source/JavaScriptCore/parser/Keywords.table
r89109 r106198 44 44 super RESERVED 45 45 46 # technically RESERVED_IF_STRICT in ES5, but may be reserved in ES6. 47 let RESERVED 48 46 49 # reserved for future use in strict code 47 50 implements RESERVED_IF_STRICT 48 51 interface RESERVED_IF_STRICT 49 let RESERVED_IF_STRICT50 52 package RESERVED_IF_STRICT 51 53 private RESERVED_IF_STRICT
Note: See TracChangeset
for help on using the changeset viewer.