Remove ContextOptions::strictMode / options("strict_mode")
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox117 | --- | fixed |
People
(Reporter: evilpies, 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•6 years ago
|
Updated•6 years ago
|
Updated•3 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
Depends on D182648
| Assignee | ||
Comment 3•2 years ago
|
||
Depends on D182649
Comment 4•2 years 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•2 years 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)
Comment 7•2 years 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•2 years ago
|
Comment 9•2 years 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
•