Bug 1435813 - Enable Array.prototype.flat and Array.prototype.flatMap in release builds. r=till

--HG--
extra : rebase_source : adc7e839e4d241857a89df6c6669c241a14466da
This commit is contained in:
Tom Schuster 2018-06-05 14:41:41 +02:00
Родитель 5dd653796c
Коммит f7c7d0f881
3 изменённых файлов: 2 добавлений и 11 удалений

Просмотреть файл

@ -3553,10 +3553,9 @@ static const JSFunctionSpec array_methods[] = {
/* ES7 additions */
JS_SELF_HOSTED_FN("includes", "ArrayIncludes", 2,0),
#ifdef NIGHTLY_BUILD
/* Future additions */
JS_SELF_HOSTED_FN("flatMap", "ArrayFlatMap", 1,0),
JS_SELF_HOSTED_FN("flat", "ArrayFlat", 0,0),
#endif
JS_FS_END
};

Просмотреть файл

@ -46,11 +46,6 @@ skip-if(!this.hasOwnProperty("SharedArrayBuffer")) script non262/SIMD/load-sab-b
skip-if(!this.hasOwnProperty("Atomics")) include test262/built-ins/Atomics/jstests.list
skip-if(!this.hasOwnProperty("SharedArrayBuffer")) include test262/built-ins/SharedArrayBuffer/jstests.list
# flatMap and flatten are Nightly-only
skip-if(!Array.prototype.flatMap) include test262/built-ins/Array/prototype/flatMap/jstests.list
skip-if(!Array.prototype.flat) include test262/built-ins/Array/prototype/flat/jstests.list
#####################################
# Test262 tests disabled on browser #
#####################################

Просмотреть файл

@ -201,10 +201,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=933681
"pop", "shift", "unshift", "splice", "concat", "slice", "lastIndexOf", "indexOf",
"includes", "forEach", "map", "reduce", "reduceRight", "filter", "some", "every", "find",
"findIndex", "copyWithin", "fill", Symbol.iterator, Symbol.unscopables, "entries", "keys",
"values", "constructor"];
if (isNightlyBuild) {
gPrototypeProperties['Array'].push("flat", "flatMap");
}
"values", "constructor", "flat", "flatMap"];
gConstructorProperties['Array'] =
constructorProps(["join", "reverse", "sort", "push", "pop", "shift",
"unshift", "splice", "concat", "slice", "isArray",