summaryrefslogtreecommitdiffstats
path: root/js/src/jsapi.h
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/src/jsapi.h
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/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 5523dfa1d..989abe47c 100644
--- a/js/src/jsapi.h
+++ b/js/src/jsapi.h
@@ -1099,7 +1099,8 @@ class JS_PUBLIC_API(ContextOptions) {
dumpStackOnDebuggeeWouldRun_(false),
werror_(false),
strictMode_(false),
- extraWarnings_(false)
+ extraWarnings_(false),
+ arrayProtoValues_(true)
{
}
@@ -1223,6 +1224,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;
@@ -1238,6 +1245,7 @@ class JS_PUBLIC_API(ContextOptions) {
bool werror_ : 1;
bool strictMode_ : 1;
bool extraWarnings_ : 1;
+ bool arrayProtoValues_ : 1;
};
JS_PUBLIC_API(ContextOptions&)