Remove ContextOptions::strictMode / options("strict_mode")
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox117 | --- | fixed |
People
(Reporter: evilpie, Assigned: arai)
References
Details
Attachments
(3 files)
As far as I can tell this is actually not necessary for "use strict" and only used by 5 tests. Maybe I am overlooking some brower usage.
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•2 years ago
|
Assignee | ||
Updated•10 months ago
|
Assignee | ||
Comment 1•10 months ago
|
||
Assignee | ||
Comment 2•10 months ago
|
||
Depends on D182648
Assignee | ||
Comment 3•10 months ago
|
||
Depends on D182649
Comment 4•10 months ago
|
||
It looks like this was added in 2012 (bug 736792) for some kind of embedder usage. I guess we don't care about that and/or hope it doesn't matter any more?
Assignee | ||
Comment 5•10 months ago
•
|
||
the patch was before introducing JS::CompileOptions
.
It's still possible to force strict mode by calling setForceStrictMode()
on JS::CompileOptions
when compiling the top-level script.
CompileOptions& setForceStrictMode() {
forceStrictMode_ = true;
return *this;
}
(fixed the reference)
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/708e0b4c936f Part 1: Remove options("strict_mode") in JS shell and xpcshell. r=bthrall https://hg.mozilla.org/integration/autoland/rev/07449789a809 Part 2: Remove Cu.strict_mode. r=mccr8 https://hg.mozilla.org/integration/autoland/rev/fb973c543eaa Part 3: Remove JS::ContextOptions::forceStrictMode_. r=bthrall
Comment 7•10 months ago
|
||
Backed out for causing build bustages in XPCShellImpl.cpp
- Backout link
- Push with failures
- Failure Log
- Failure line: /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp(474,43): error: loop will run at most once (loop increment never executed) [-Werror,-Wunreachable-code-loop-increment]
Assignee | ||
Updated•10 months ago
|
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/3a03afd785b6 Part 1: Remove options("strict_mode") in JS shell and xpcshell. r=bthrall https://hg.mozilla.org/integration/autoland/rev/0bd3788c6a65 Part 2: Remove Cu.strict_mode. r=mccr8 https://hg.mozilla.org/integration/autoland/rev/54775b90665e Part 3: Remove JS::ContextOptions::forceStrictMode_. r=bthrall
Comment 9•10 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3a03afd785b6
https://hg.mozilla.org/mozilla-central/rev/0bd3788c6a65
https://hg.mozilla.org/mozilla-central/rev/54775b90665e
Description
•