summaryrefslogtreecommitdiffstats
path: root/dom/workers/RuntimeService.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 /dom/workers/RuntimeService.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 'dom/workers/RuntimeService.cpp')
-rw-r--r--dom/workers/RuntimeService.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/dom/workers/RuntimeService.cpp b/dom/workers/RuntimeService.cpp
index 1f5616873..1739f3d31 100644
--- a/dom/workers/RuntimeService.cpp
+++ b/dom/workers/RuntimeService.cpp
@@ -301,7 +301,9 @@ LoadContextOptions(const char* aPrefName, void* /* aClosure */)
.setNativeRegExp(GetWorkerPref<bool>(NS_LITERAL_CSTRING("native_regexp")))
.setAsyncStack(GetWorkerPref<bool>(NS_LITERAL_CSTRING("asyncstack")))
.setWerror(GetWorkerPref<bool>(NS_LITERAL_CSTRING("werror")))
- .setExtraWarnings(GetWorkerPref<bool>(NS_LITERAL_CSTRING("strict")));
+ .setExtraWarnings(GetWorkerPref<bool>(NS_LITERAL_CSTRING("strict")))
+ .setArrayProtoValues(GetWorkerPref<bool>(
+ NS_LITERAL_CSTRING("array_prototype_values")));
RuntimeService::SetDefaultContextOptions(contextOptions);