diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-02-20 21:21:56 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-02-20 21:21:56 +0100 |
commit | 0c36b27511c1fbca594f0426c493ef601fda3e4c (patch) | |
tree | 6e801c0abb01391e6008a49f9d6c4ac4dd967cd8 /js/src/jsapi.h | |
parent | d77729916b4b9c2b67abd41181336c2cbb1da968 (diff) | |
download | UXP-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/src/jsapi.h')
-rw-r--r-- | js/src/jsapi.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/src/jsapi.h b/js/src/jsapi.h index 2d6ff462c..154c88f45 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&) |