Changeset 113352 in webkit
- Timestamp:
- Apr 5, 2012 12:09:40 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r113351 r113352 1 2012-04-05 Gavin Barraclough <barraclough@apple.com> 2 3 https://bugs.webkit.org/show_bug.cgi?id=77293 4 [Un]Reserve 'let' 5 6 Rubber stamped by Oliver Hunt. 7 8 Revert r106198. 9 This does break the web - e.g. https://bvi.bnc.ca/index/bnc/indexen.html 10 If we're going to reserve let, we're going to have to do so in a more 11 circumspect fashion. 12 13 * fast/js/keywords-and-reserved_words-expected.txt: 14 * fast/js/reserved-words-as-property-expected.txt: 15 * fast/js/reserved-words-strict-expected.txt: 16 * fast/js/script-tests/keywords-and-reserved_words.js: 17 * fast/js/script-tests/reserved-words-as-property.js: 18 * fast/js/script-tests/reserved-words-strict.js: 19 1 20 2012-04-05 Erik Arvidsson <arv@chromium.org> 2 21 -
trunk/LayoutTests/fast/js/keywords-and-reserved_words-expected.txt
r106198 r113352 61 61 PASS classifyIdentifier("implements") is "strict" 62 62 PASS classifyIdentifier("interface") is "strict" 63 PASS classifyIdentifier("let") is " keyword"63 PASS classifyIdentifier("let") is "strict" 64 64 PASS classifyIdentifier("package") is "strict" 65 65 PASS classifyIdentifier("private") is "strict" -
trunk/LayoutTests/fast/js/reserved-words-as-property-expected.txt
r106198 r113352 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 true 1339 PASS (function(){var let; true}); true is true 1340 PASS var let = 42; let === 42 is true 1341 PASS (function(){var let = 42; let === 42}); true is true 1342 PASS function g(let){ }; true is true 1343 PASS (function(){function g(let){ }; true}); true is true 1344 PASS /let/.test(function g(let){ }) is true 1345 PASS (function(){/let/.test(function g(let){ })}); true is true 1346 PASS try{}catch(let){}; true is true 1347 PASS (function(){try{}catch(let){}; true}); true is true 1348 PASS function let(){ }; true is true 1349 PASS (function(){function let(){ }; true}); true is true 1350 PASS ({ "let": 42 }.let === 42) is true 1351 PASS (function(){({ "let": 42 }.let === 42)}); true is true 1352 PASS ({ let: 42 }.let === 42) is true 1353 PASS (function(){({ let: 42 }.let === 42)}); true is true 1354 PASS ({ get let(){}, set let(){}, parsedOkay: 42 }.parsedOkay === 42) is true 1355 PASS (function(){({ get let(){}, set let(){}, parsedOkay: 42 }.parsedOkay === 42)}); true is true 1356 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 true 1369 PASS (function(){"use strict";({ "let": 42 }.let === 42)}); true is true 1370 PASS "use strict";({ let: 42 }.let === 42) is true 1371 PASS (function(){"use strict";({ let: 42 }.let === 42)}); true is true 1372 PASS "use strict";({ get let(){}, set let(){}, parsedOkay: 42 }.parsedOkay === 42) is true 1373 PASS (function(){"use strict";({ get let(){}, set let(){}, parsedOkay: 42 }.parsedOkay === 42)}); true is true 1338 1374 PASS var private; true is true 1339 1375 PASS (function(){var private; true}); true is true -
trunk/LayoutTests/fast/js/reserved-words-strict-expected.txt
r106198 r113352 7 7 PASS isReserved('implements') is true 8 8 PASS isReserved('interface') is true 9 PASS isReserved('let') is true 9 10 PASS isReserved('package') is true 10 11 PASS isReserved('private') is true -
trunk/LayoutTests/fast/js/script-tests/keywords-and-reserved_words.js
r106198 r113352 105 105 shouldBe('classifyIdentifier("implements")', '"strict"'); 106 106 shouldBe('classifyIdentifier("interface")', '"strict"'); 107 shouldBe('classifyIdentifier("let")', '" keyword"'); // Experimentally reserving this; this may be reserved in ES6.107 shouldBe('classifyIdentifier("let")', '"strict"'); 108 108 shouldBe('classifyIdentifier("package")', '"strict"'); 109 109 shouldBe('classifyIdentifier("private")', '"strict"'); -
trunk/LayoutTests/fast/js/script-tests/reserved-words-as-property.js
r106198 r113352 7 7 var strictReservedWords = [ 8 8 "implements", 9 "let", 9 10 "private", 10 11 "public", -
trunk/LayoutTests/fast/js/script-tests/reserved-words-strict.js
r106198 r113352 15 15 var reservedWords = [ 16 16 "implements", 17 "let", 17 18 "private", 18 19 "public", -
trunk/Source/JavaScriptCore/ChangeLog
r113333 r113352 1 2012-04-05 Gavin Barraclough <barraclough@apple.com> 2 3 https://bugs.webkit.org/show_bug.cgi?id=77293 4 [Un]Reserve 'let' 5 6 Rubber stamped by Oliver Hunt. 7 8 Revert r106198. 9 This does break the web - e.g. https://bvi.bnc.ca/index/bnc/indexen.html 10 If we're going to reserve let, we're going to have to do so in a more 11 circumspect fashion. 12 13 * parser/Keywords.table: 14 1 15 2012-04-05 Michael Saboff <msaboff@apple.com> 2 16 -
trunk/Source/JavaScriptCore/parser/Keywords.table
r107527 r113352 44 44 super RESERVED 45 45 46 # technically RESERVED_IF_STRICT in ES5, but may be reserved in ES6.47 let RESERVED48 49 46 # Reserved for future use in strict code. 50 47 implements RESERVED_IF_STRICT 51 48 interface RESERVED_IF_STRICT 49 let RESERVED_IF_STRICT 52 50 package RESERVED_IF_STRICT 53 51 private RESERVED_IF_STRICT
Note: See TracChangeset
for help on using the changeset viewer.