JS - support for Array.prototype.values()

This commit is contained in:
janekptacijarabaci 2018-02-20 21:21:56 +01:00 committed by Roy Tam
commit f8591643c5
8 changed files with 32 additions and 9 deletions

View file

@ -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&)