Closed
Bug 1426519
Opened 7 years ago
Closed 7 years ago
Disable non-standard expression closure everywhere
Categories
(Core :: JavaScript Engine, enhancement, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: evilpie, Assigned: evilpie)
References
Details
(Keywords: dev-doc-complete, site-compat)
Attachments
(2 files, 1 obsolete file)
9.60 KB,
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
7.56 KB,
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
So far I am not aware of any breakage caused by disabling this on Nightly. (bug 1319512). We should just disable this unconditionally and worst case we enable this again before release. The high telemetry usage we measured probably just comes from a fingerprinting script.
Updated•7 years ago
|
Keywords: dev-doc-needed,
site-compat
Assignee | ||
Comment 1•7 years ago
|
||
With this patch we have basically zero test coverage, which is of course quite unfortunate. Adding a runtime option for this in the parser seems like quite a bit of work. I think we used to do this for something, but I can't find the code at the moment.
Attachment #8938838 -
Flags: review?(jdemooij)
Comment 2•7 years ago
|
||
Comment on attachment 8938838 [details] [diff] [review]
Disable expression closures everywhere
Review of attachment 8938838 [details] [diff] [review]:
-----------------------------------------------------------------
What do you think about adding an expressionClosuresEnabled() shell function so we still have test coverage when compiling with JS_HAS_EXPR_CLOSURES?
No fuzz/test coverage makes me a bit uncomfortable, but it's probably ok for now since this is almost certainly dead.
Attachment #8938838 -
Flags: review?(jdemooij)
Updated•7 years ago
|
Priority: -- → P3
Assignee | ||
Comment 3•7 years ago
|
||
We will do this in Firefox 60 now.
Assignee | ||
Comment 4•7 years ago
|
||
Assignee | ||
Comment 5•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #8938838 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Attachment #8945879 -
Flags: review?(jdemooij)
Assignee | ||
Comment 6•7 years ago
|
||
Comment on attachment 8945880 [details] [diff] [review]
Disable expression closures everywhere, but allow dynamic enabling them for tests
I removed the macro, because it just makes this code just more complicated to write. I doubt anyone needs it.
Attachment #8945880 -
Flags: review?(jdemooij)
Updated•7 years ago
|
Attachment #8945879 -
Flags: review?(jdemooij) → review+
Comment 7•7 years ago
|
||
Comment on attachment 8945880 [details] [diff] [review]
Disable expression closures everywhere, but allow dynamic enabling them for tests
Review of attachment 8945880 [details] [diff] [review]:
-----------------------------------------------------------------
Great, thanks!
Attachment #8945880 -
Flags: review?(jdemooij) → review+
Pushed by evilpies@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/166a780e234f
Disable expression closures everywhere, but allow dynamic enabling them for tests. r=jandem
https://hg.mozilla.org/integration/mozilla-inbound/rev/245e242e19af
Fix tests to explicitly enable expression closures. r=jandem
Comment 9•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/166a780e234f
https://hg.mozilla.org/mozilla-central/rev/245e242e19af
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Comment 10•7 years ago
|
||
Posted the site compatibility note: https://www.fxsitecompat.com/en-CA/docs/2017/expression-closure-support-has-been-removed/
Comment 11•7 years ago
|
||
https://github.com/mdn/browser-compat-data/pull/1138
https://developer.mozilla.org/en-US/Firefox/Releases/60#Removals_from_the_web_platform
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Expression_closures
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•