mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 04:58:00 +00:00
Enable JS1.7 features in JSSh. Not part of default builds.
This commit is contained in:
parent
0fa608ce5e
commit
be88ea92d3
@ -583,6 +583,9 @@ NS_IMETHODIMP nsJSSh::Init()
|
||||
// Enable e4x:
|
||||
JS_SetOptions(mJSContext, JS_GetOptions(mJSContext) | JSOPTION_XML);
|
||||
|
||||
// Enable js1.7 features (let, yield, etc - see bug#351515)
|
||||
JS_SetVersion(mJSContext, JSVERSION_1_7);
|
||||
|
||||
mContextStack = do_GetService("@mozilla.org/js/xpc/ContextStack;1");
|
||||
if (!mContextStack) {
|
||||
NS_ERROR("failed to get the nsThreadJSContextStack service");
|
||||
|
Loading…
x
Reference in New Issue
Block a user