summaryrefslogtreecommitdiff
path: root/js/src/jsapi.h
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/src/jsapi.h
parentd77729916b4b9c2b67abd41181336c2cbb1da968 (diff)
downloaduxp-0c36b27511c1fbca594f0426c493ef601fda3e4c.tar.gz
JS - support for Array.prototype.values()
Diffstat (limited to 'js/src/jsapi.h')
-rw-r--r--js/src/jsapi.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/js/src/jsapi.h b/js/src/jsapi.h
index 2d6ff462c0..154c88f452 100644
--- a/js/src/jsapi.h
+++ b/js/src/jsapi.h
@@ -1102,7 +1102,8 @@ class JS_PUBLIC_API(ContextOptions) {
dumpStackOnDebuggeeWouldRun_(false),
werror_(false),
strictMode_(false),
- extraWarnings_(false)
+ extraWarnings_(false),
+ arrayProtoValues_(true)
{
}
@@ -1226,6 +1227,12 @@ class JS_PUBLIC_API(ContextOptions) {
return *this;
}
+ bool arrayProtoValues() const { return arrayProtoValues_; }
+ ContextOptions& setArrayProtoValues(bool flag) {
+ arrayProtoValues_ = flag;
+ return *this;
+ }
+
private:
bool baseline_ : 1;
bool ion_ : 1;
@@ -1241,6 +1248,7 @@ class JS_PUBLIC_API(ContextOptions) {
bool werror_ : 1;
bool strictMode_ : 1;
bool extraWarnings_ : 1;
+ bool arrayProtoValues_ : 1;
};
JS_PUBLIC_API(ContextOptions&)