summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/src/XPCJSContext.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-02-20 21:21:56 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-02-20 21:21:56 +0100
commit0c36b27511c1fbca594f0426c493ef601fda3e4c (patch)
tree6e801c0abb01391e6008a49f9d6c4ac4dd967cd8 /js/xpconnect/src/XPCJSContext.cpp
parentd77729916b4b9c2b67abd41181336c2cbb1da968 (diff)
downloadUXP-0c36b27511c1fbca594f0426c493ef601fda3e4c.tar
UXP-0c36b27511c1fbca594f0426c493ef601fda3e4c.tar.gz
UXP-0c36b27511c1fbca594f0426c493ef601fda3e4c.tar.lz
UXP-0c36b27511c1fbca594f0426c493ef601fda3e4c.tar.xz
UXP-0c36b27511c1fbca594f0426c493ef601fda3e4c.zip
JS - support for Array.prototype.values()
Diffstat (limited to 'js/xpconnect/src/XPCJSContext.cpp')
-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);