mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
JS - support for Array.prototype.values()
This commit is contained in:
parent
ef6478af8c
commit
f8591643c5
8 changed files with 32 additions and 9 deletions
|
|
@ -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&)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue