Closed
Bug 1173883
Opened 9 years ago
Closed 7 years ago
Console should use same JS version as page scripts
Categories
(DevTools :: Console, defect)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jryans, Unassigned)
References
Details
(Keywords: dev-doc-needed)
Apparently we opt the console into JS version 1.8, giving it access to extra JS features that are not available to page scripts today.
The console should exactly match the features available to page scripts to reduce confusion.
So, for web content at least, we should go back down to the default version. For the browser console, it's fine to stay where we are.
Reporter | ||
Updated•9 years ago
|
Reporter | ||
Comment 1•9 years ago
|
||
Bug 932513 has more discussion on this topic.
Comment 2•9 years ago
|
||
Do we have a larger effort to stop the versioning madness? Experimental JS features should be behind a single "experimental" flag, not versioned.
Comment 3•9 years ago
|
||
Ok, I should have followed the "blocks" link... ^_^
Reporter | ||
Comment 4•9 years ago
|
||
Jim, as best I can tell, the web console basically just pipes strings into the Debugger API's evalWithBindings.
So, we aren't explicitly saying "eval as you would in JS version 1.8" that I can see.
Is there some way we can get the Debugger API to eval with the same JS version a page's script would use?
Flags: needinfo?(jimb)
Comment 5•9 years ago
|
||
Wow, it totally should do that. Bug 971673 would fix this, but is stalled waiting for me.
Flags: needinfo?(jimb)
Updated•9 years ago
|
Keywords: dev-doc-needed
Comment 6•7 years ago
|
||
Bug 1390106 fixed this.
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•