Implement Array.flat and Array.flatMap (#3925)

JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
This commit is contained in:
kisbg
2020-08-12 16:51:04 +02:00
committed by GitHub
parent 0bb4626ddb
commit cd34bfa4c3
8 changed files with 405 additions and 39 deletions
-35
View File
@@ -151,47 +151,12 @@
<test id="built-ins/Array/proto-from-ctor-realm-one.js"><reason></reason></test>
<test id="built-ins/Array/proto-from-ctor-realm-two.js"><reason></reason></test>
<test id="built-ins/Array/proto-from-ctor-realm-zero.js"><reason></reason></test>
<test id="built-ins/Array/prototype/Symbol.unscopables/value.js"><reason></reason></test>
<test id="built-ins/Array/prototype/concat/create-proto-from-ctor-realm-array.js"><reason></reason></test>
<test id="built-ins/Array/prototype/concat/create-proto-from-ctor-realm-non-array.js"><reason></reason></test>
<test id="built-ins/Array/prototype/copyWithin/coerced-values-start-change-start.js"><reason></reason></test>
<test id="built-ins/Array/prototype/copyWithin/coerced-values-start-change-target.js"><reason></reason></test>
<test id="built-ins/Array/prototype/filter/create-proto-from-ctor-realm-array.js"><reason></reason></test>
<test id="built-ins/Array/prototype/filter/create-proto-from-ctor-realm-non-array.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/array-like-objects.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/bound-function-call.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/empty-array-elements.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/empty-object-elements.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/length.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/name.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/non-numeric-depth-should-not-throw.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/non-object-ctor-throws.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/null-undefined-elements.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/null-undefined-input-throws.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/positive-infinity.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/prop-desc.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/proxy-access-count.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/symbol-object-create-null-depth-throws.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flat/target-array-with-non-writable-property.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/array-like-objects-nested.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/array-like-objects-poisoned-length.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/array-like-objects-typedarrays.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/array-like-objects.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/bound-function-argument.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/depth-always-one.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/length.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/name.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/non-callable-argument-throws.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/prop-desc.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/proxy-access-count.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/target-array-with-non-writable-property.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/this-value-ctor-non-object.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/this-value-ctor-object-species-bad-throws.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/this-value-ctor-object-species-custom-ctor-poisoned-throws.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/this-value-ctor-object-species-custom-ctor.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/this-value-ctor-object-species.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/this-value-null-undefined-throws.js"><reason></reason></test>
<test id="built-ins/Array/prototype/flatMap/thisArg-argument.js"><reason></reason></test>
<test id="built-ins/Array/prototype/map/create-proto-from-ctor-realm-array.js"><reason></reason></test>
<test id="built-ins/Array/prototype/map/create-proto-from-ctor-realm-non-array.js"><reason></reason></test>
<test id="built-ins/Array/prototype/slice/create-proto-from-ctor-realm-array.js"><reason></reason></test>