Closed
Bug 1023609
Opened 11 years ago
Closed 10 years ago
Remove SpiderMonkey support for let expressions
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla41
People
(Reporter: shu, Assigned: cpeterson)
References
(Blocks 1 open bug)
Details
(Keywords: addon-compat, dev-doc-complete, site-compat, Whiteboard: [DocArea=JS])
Attachments
(2 files)
90.05 KB,
patch
|
shu
:
review+
|
Details | Diff | Splinter Review |
36.49 KB,
patch
|
shu
:
review+
|
Details | Diff | Splinter Review |
ES6 does not spec let blocks and let expressions. We should remove them.
Updated•11 years ago
|
Keywords: dev-doc-needed,
site-compat
Updated•10 years ago
|
Whiteboard: [DocArea=JS]
Assignee | ||
Comment 1•10 years ago
|
||
Part 1: Remove SpiderMonkey tests for nonstandard let expressions.
This patch removes fuzz tests that use let expressions and updates functional tests to not use let expressions.
Assignee | ||
Comment 2•10 years ago
|
||
Part 2: Remove SpiderMonkey support for nonstandard let expressions.
This patch removes let expressions, but leaves let blocks for now. This work was easier to do in separate steps.
Attachment #8607351 -
Flags: review?(shu)
Reporter | ||
Comment 4•10 years ago
|
||
Comment on attachment 8607350 [details] [diff] [review]
part-1-remove-let-extension-tests.patch
Review of attachment 8607350 [details] [diff] [review]:
-----------------------------------------------------------------
Wondrous removal
Attachment #8607350 -
Flags: review?(shu) → review+
Reporter | ||
Comment 5•10 years ago
|
||
Comment on attachment 8607351 [details] [diff] [review]
part-2-remove-let-extension-code.patch
Review of attachment 8607351 [details] [diff] [review]:
-----------------------------------------------------------------
Wondrous removal.
::: js/src/frontend/Parser.cpp
@@ +8106,2 @@
> * }
> + * array
Nit: could you change the pseudocode to
{
let array = new Array, i, j;
...
array
}
That is, add an extra pair of { } around everything. Otherwise it looks like we're introducing new bindings into an existing block scope.
Attachment #8607351 -
Flags: review?(shu) → review+
Assignee | ||
Updated•10 years ago
|
status-firefox40:
--- → wontfix
status-firefox41:
--- → fixed
Summary: Delete support for let blocks and let expressions for ES6 → Remove SpiderMonkey support for let expressions
Comment 7•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Comment 8•10 years ago
|
||
Updated•10 years ago
|
Keywords: addon-compat
Assignee | ||
Comment 9•10 years ago
|
||
(In reply to Tooru Fujisawa [:arai] from comment #8)
> Updated following documents:
Thanks, Tooru! :)
Status: RESOLVED → VERIFIED
Comment 10•10 years ago
|
||
Also in site-compat doc now. Thanks, everyone!
https://developer.mozilla.org/en-US/Firefox/Releases/41/Site_Compatibility#JavaScript
Keywords: dev-doc-needed → dev-doc-complete
Comment 11•10 years ago
|
||
Does this mean SM is now ES6-spec-compliant wrt let?
Flags: needinfo?(cpeterson)
Assignee | ||
Comment 12•10 years ago
|
||
(In reply to Florian Bender from comment #11)
> Does this mean SM is now ES6-spec-compliant wrt let?
Not yet. There are some remaining let issues described in tracking bug 950547.
Flags: needinfo?(cpeterson)
Comment 13•10 years ago
|
||
Yeah, sorry, forgot about that one.
You need to log in
before you can comment on or make changes to this bug.
Description
•