summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/src
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-03-28 11:33:19 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-03-28 11:33:19 +0200
commitdc8aad9b9dc6983bb88aa586f34d9db007840eb8 (patch)
treec8d904ea558af12c858ee6df1f9a08cfa11434e5 /js/xpconnect/src
parent19b934070704c1ed12d3a75bc97752831d23f087 (diff)
parentd990d8ab2cade6c928e8bbe56ae038d020cef599 (diff)
downloadUXP-dc8aad9b9dc6983bb88aa586f34d9db007840eb8.tar
UXP-dc8aad9b9dc6983bb88aa586f34d9db007840eb8.tar.gz
UXP-dc8aad9b9dc6983bb88aa586f34d9db007840eb8.tar.lz
UXP-dc8aad9b9dc6983bb88aa586f34d9db007840eb8.tar.xz
UXP-dc8aad9b9dc6983bb88aa586f34d9db007840eb8.zip
Merge remote-tracking branch 'janek/_testBranch_js_array_values'
Diffstat (limited to 'js/xpconnect/src')
-rw-r--r--js/xpconnect/src/XPCJSContext.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/xpconnect/src/XPCJSContext.cpp b/js/xpconnect/src/XPCJSContext.cpp
index defd1b785..bedb7c650 100644
--- a/js/xpconnect/src/XPCJSContext.cpp
+++ b/js/xpconnect/src/XPCJSContext.cpp
@@ -1473,6 +1473,8 @@ ReloadPrefsCallback(const char* pref, void* data)
sExtraWarningsForSystemJS = Preferences::GetBool(JS_OPTIONS_DOT_STR "strict.debug");
#endif
+ bool arrayProtoValues = Preferences::GetBool(JS_OPTIONS_DOT_STR "array_prototype_values");
+
JS::ContextOptionsRef(cx).setBaseline(useBaseline)
.setIon(useIon)
.setAsmJS(useAsmJS)
@@ -1484,7 +1486,8 @@ ReloadPrefsCallback(const char* pref, void* data)
.setThrowOnDebuggeeWouldRun(throwOnDebuggeeWouldRun)
.setDumpStackOnDebuggeeWouldRun(dumpStackOnDebuggeeWouldRun)
.setWerror(werror)
- .setExtraWarnings(extraWarnings);
+ .setExtraWarnings(extraWarnings)
+ .setArrayProtoValues(arrayProtoValues);
JS_SetParallelParsingEnabled(cx, parallelParsing);
JS_SetOffthreadIonCompilationEnabled(cx, offthreadIonCompilation);