Closed Bug 730139 Opened 13 years ago Closed 13 years ago

Try making 'let' a reserved word

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
mozilla13

People

(Reporter: jorendorff, Unassigned)

References

Details

(Keywords: dev-doc-complete, Whiteboard: [mentor=jorendorff][lang=c++])

Attachments

(1 file)

'let' is reserved in strict mode. JSCore currently reserves 'let' even in non-strict code (on an experimental basis). We should join in the experiment.
Whiteboard: [mentor=jorendorff] → [mentor=jorendorff][lang=c++]
Try run for 32ea63fd558b is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=32ea63fd558b Results (out of 2 total builds): exception: 2 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jorendorff@mozilla.com-32ea63fd558b
Try run for 4d3dbe17bf5f is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=4d3dbe17bf5f Results (out of 23 total builds): success: 10 warnings: 13 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jorendorff@mozilla.com-4d3dbe17bf5f
Try run for 52b550e6b0f7 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=52b550e6b0f7 Results (out of 24 total builds): success: 22 warnings: 2 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jorendorff@mozilla.com-52b550e6b0f7
Attached patch v1Splinter Review
This is Adam's patch. I will be reviewing and pushing it in the next couple of hours.
Attachment #604038 - Flags: review?(jorendorff)
Comment on attachment 604038 [details] [diff] [review] v1 Review of attachment 604038 [details] [diff] [review]: ----------------------------------------------------------------- r=me with one change, noted below. I'll make the change and push it in a few hours. ::: js/src/tests/ecma_5/misc/future-reserved-words.js @@ -27,5 @@ > var strictFutureReservedWords = > [ > "implements", > "interface", > - "let", // enabled: this file doesn't execute as JS1.7 Looking at what this test actually does, I think "let" should be moved to futureReservedWords rather than simply deleted. And there should definitely be a comment noting that in doing so we're departing from ES5 (in an attempt to make ES6 better).
Attachment #604038 - Flags: review?(jorendorff) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
Depends on: 738617
Depends on: 738908
Given this was backed out in bug 738908, I think there's nothing to document here.
Resolution: FIXED → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: