Implement array.flat and array.flatMap

Self-hosted implementation that adds both functions and adds them to
@@unscopables as specced in ES2019.
Resolves #1095
This commit is contained in:
wolfbeast 2019-05-19 23:11:17 +02:00 committed by Roy Tam
commit 3538814b92
5 changed files with 120 additions and 1 deletions

View file

@ -198,7 +198,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"];
"values", "constructor", "flat", "flatMap"];
if (isNightlyBuild) {
// ...nothing now
}