From 4efdb83ae9c38c453b42bde8ffec685d4e920152 Mon Sep 17 00:00:00 2001 From: Rick Waldron <waldron.rick@gmail.com> Date: Tue, 27 Feb 2018 17:45:25 -0500 Subject: [PATCH] Updates a portion of the BigInt tests that need work. Ref gh-1461 (#1462) --- harness/testBigIntTypedArray.js | 3 +- .../copyWithin/BigInt/invoked-as-func.js | 29 ------- .../copyWithin/BigInt/invoked-as-method.js | 29 ------- .../prototype/copyWithin/BigInt/length.js | 30 -------- .../prototype/copyWithin/BigInt/name.js | 27 ------- .../prototype/copyWithin/BigInt/prop-desc.js | 19 ----- .../copyWithin/BigInt/this-is-not-object.js | 50 ------------- .../BigInt/this-is-not-typedarray-instance.js | 42 ----------- .../prototype/every/BigInt/invoked-as-func.js | 29 ------- .../every/BigInt/invoked-as-method.js | 29 ------- .../prototype/every/BigInt/length.js | 30 -------- .../TypedArray/prototype/every/BigInt/name.js | 27 ------- .../prototype/every/BigInt/prop-desc.js | 19 ----- .../every/BigInt/this-is-not-object.js | 51 ------------- .../BigInt/this-is-not-typedarray-instance.js | 43 ----------- .../prototype/fill/BigInt/invoked-as-func.js | 29 ------- .../fill/BigInt/invoked-as-method.js | 29 ------- .../prototype/fill/BigInt/length.js | 30 -------- .../TypedArray/prototype/fill/BigInt/name.js | 27 ------- .../prototype/fill/BigInt/prop-desc.js | 19 ----- .../fill/BigInt/this-is-not-object.js | 50 ------------- .../BigInt/this-is-not-typedarray-instance.js | 42 ----------- .../filter/BigInt/invoked-as-func.js | 30 -------- .../filter/BigInt/invoked-as-method.js | 30 -------- .../prototype/filter/BigInt/length.js | 30 -------- .../prototype/filter/BigInt/name.js | 27 ------- .../prototype/filter/BigInt/prop-desc.js | 19 ----- .../filter/BigInt/this-is-not-object.js | 53 ------------- .../BigInt/this-is-not-typedarray-instance.js | 45 ----------- .../prototype/find/BigInt/invoked-as-func.js | 29 ------- .../find/BigInt/invoked-as-method.js | 29 ------- .../prototype/find/BigInt/length.js | 30 -------- .../TypedArray/prototype/find/BigInt/name.js | 27 ------- .../prototype/find/BigInt/prop-desc.js | 19 ----- .../find/BigInt/this-is-not-object.js | 51 ------------- .../BigInt/this-is-not-typedarray-instance.js | 43 ----------- .../findIndex/BigInt/invoked-as-func.js | 29 ------- .../findIndex/BigInt/invoked-as-method.js | 29 ------- .../prototype/findIndex/BigInt/length.js | 30 -------- .../prototype/findIndex/BigInt/name.js | 27 ------- .../prototype/findIndex/BigInt/prop-desc.js | 19 ----- .../findIndex/BigInt/this-is-not-object.js | 51 ------------- .../BigInt/this-is-not-typedarray-instance.js | 43 ----------- .../forEach/BigInt/invoked-as-func.js | 29 ------- .../forEach/BigInt/invoked-as-method.js | 29 ------- .../prototype/forEach/BigInt/length.js | 30 -------- .../prototype/forEach/BigInt/name.js | 27 ------- .../prototype/forEach/BigInt/prop-desc.js | 19 ----- .../forEach/BigInt/this-is-not-object.js | 51 ------------- .../BigInt/this-is-not-typedarray-instance.js | 43 ----------- .../includes/BigInt/invoked-as-func.js | 29 ------- .../includes/BigInt/invoked-as-method.js | 29 ------- .../prototype/includes/BigInt/length.js | 30 -------- .../prototype/includes/BigInt/name.js | 27 ------- .../prototype/includes/BigInt/prop-desc.js | 19 ----- .../includes/BigInt/this-is-not-object.js | 50 ------------- .../BigInt/this-is-not-typedarray-instance.js | 42 ----------- .../indexOf/BigInt/invoked-as-func.js | 29 ------- .../indexOf/BigInt/invoked-as-method.js | 29 ------- .../prototype/indexOf/BigInt/length.js | 30 -------- .../prototype/indexOf/BigInt/name.js | 27 ------- .../prototype/indexOf/BigInt/prop-desc.js | 19 ----- .../indexOf/BigInt/this-is-not-object.js | 50 ------------- .../BigInt/this-is-not-typedarray-instance.js | 42 ----------- .../prototype/join/BigInt/invoked-as-func.js | 29 ------- .../join/BigInt/invoked-as-method.js | 29 ------- .../prototype/join/BigInt/length.js | 30 -------- .../TypedArray/prototype/join/BigInt/name.js | 27 ------- .../prototype/join/BigInt/prop-desc.js | 19 ----- .../join/BigInt/this-is-not-object.js | 50 ------------- .../BigInt/this-is-not-typedarray-instance.js | 42 ----------- .../prototype/keys/BigInt/invoked-as-func.js | 30 -------- .../keys/BigInt/invoked-as-method.js | 30 -------- .../prototype/keys/BigInt/length.js | 30 -------- .../TypedArray/prototype/keys/BigInt/name.js | 27 ------- .../prototype/keys/BigInt/prop-desc.js | 19 ----- .../keys/BigInt/this-is-not-object.js | 52 ------------- .../BigInt/this-is-not-typedarray-instance.js | 44 ----------- .../lastIndexOf/BigInt/invoked-as-func.js | 29 ------- .../lastIndexOf/BigInt/invoked-as-method.js | 29 ------- .../prototype/lastIndexOf/BigInt/length.js | 30 -------- .../prototype/lastIndexOf/BigInt/name.js | 27 ------- .../prototype/lastIndexOf/BigInt/prop-desc.js | 19 ----- .../lastIndexOf/BigInt/this-is-not-object.js | 50 ------------- .../BigInt/this-is-not-typedarray-instance.js | 42 ----------- .../prototype/map/BigInt/invoked-as-func.js | 30 -------- .../prototype/map/BigInt/invoked-as-method.js | 30 -------- .../TypedArray/prototype/map/BigInt/length.js | 30 -------- .../TypedArray/prototype/map/BigInt/name.js | 27 ------- .../prototype/map/BigInt/prop-desc.js | 19 ----- .../map/BigInt/this-is-not-object.js | 51 ------------- .../BigInt/this-is-not-typedarray-instance.js | 43 ----------- .../reduce/BigInt/invoked-as-func.js | 30 -------- .../reduce/BigInt/invoked-as-method.js | 30 -------- .../prototype/reduce/BigInt/length.js | 30 -------- .../prototype/reduce/BigInt/name.js | 27 ------- .../prototype/reduce/BigInt/prop-desc.js | 19 ----- .../reduce/BigInt/this-is-not-object.js | 51 ------------- .../BigInt/this-is-not-typedarray-instance.js | 43 ----------- .../reduceRight/BigInt/invoked-as-func.js | 30 -------- .../reduceRight/BigInt/invoked-as-method.js | 30 -------- .../prototype/reduceRight/BigInt/length.js | 30 -------- .../prototype/reduceRight/BigInt/name.js | 27 ------- .../prototype/reduceRight/BigInt/prop-desc.js | 19 ----- .../reduceRight/BigInt/this-is-not-object.js | 51 ------------- .../BigInt/this-is-not-typedarray-instance.js | 43 ----------- .../reverse/BigInt/invoked-as-func.js | 30 -------- .../reverse/BigInt/invoked-as-method.js | 30 -------- .../prototype/reverse/BigInt/length.js | 30 -------- .../prototype/reverse/BigInt/name.js | 27 ------- .../prototype/reverse/BigInt/prop-desc.js | 19 ----- .../reverse/BigInt/this-is-not-object.js | 50 ------------- .../BigInt/this-is-not-typedarray-instance.js | 42 ----------- .../prototype/set/BigInt/invoked-as-func.js | 21 ------ .../prototype/set/BigInt/invoked-as-method.js | 21 ------ .../TypedArray/prototype/set/BigInt/length.js | 30 -------- .../TypedArray/prototype/set/BigInt/name.js | 27 ------- .../prototype/set/BigInt/prop-desc.js | 19 ----- .../set/BigInt/this-is-not-object.js | 75 ------------------- .../BigInt/this-is-not-typedarray-instance.js | 56 -------------- .../prototype/slice/BigInt/invoked-as-func.js | 30 -------- .../slice/BigInt/invoked-as-method.js | 30 -------- .../prototype/slice/BigInt/length.js | 30 -------- .../TypedArray/prototype/slice/BigInt/name.js | 27 ------- .../prototype/slice/BigInt/prop-desc.js | 19 ----- .../slice/BigInt/this-is-not-object.js | 52 ------------- .../BigInt/this-is-not-typedarray-instance.js | 44 ----------- .../prototype/some/BigInt/invoked-as-func.js | 29 ------- .../some/BigInt/invoked-as-method.js | 29 ------- .../prototype/some/BigInt/length.js | 30 -------- .../TypedArray/prototype/some/BigInt/name.js | 27 ------- .../prototype/some/BigInt/prop-desc.js | 19 ----- .../some/BigInt/this-is-not-object.js | 51 ------------- .../BigInt/this-is-not-typedarray-instance.js | 43 ----------- .../prototype/sort/BigInt/invoked-as-func.js | 35 --------- .../sort/BigInt/invoked-as-method.js | 35 --------- .../prototype/sort/BigInt/length.js | 30 -------- .../TypedArray/prototype/sort/BigInt/name.js | 27 ------- .../prototype/sort/BigInt/prop-desc.js | 19 ----- .../sort/BigInt/this-is-not-object.js | 51 ------------- .../BigInt/this-is-not-typedarray-instance.js | 43 ----------- .../subarray/BigInt/invoked-as-func.js | 24 ------ .../subarray/BigInt/invoked-as-method.js | 24 ------ .../prototype/subarray/BigInt/length.js | 30 -------- .../prototype/subarray/BigInt/name.js | 27 ------- .../prototype/subarray/BigInt/prop-desc.js | 19 ----- .../subarray/BigInt/this-is-not-object.js | 47 ------------ .../BigInt/this-is-not-typedarray-instance.js | 39 ---------- .../toLocaleString/BigInt/invoked-as-func.js | 31 -------- .../BigInt/invoked-as-method.js | 31 -------- .../prototype/toLocaleString/BigInt/length.js | 30 -------- .../prototype/toLocaleString/BigInt/name.js | 27 ------- .../toLocaleString/BigInt/prop-desc.js | 19 ----- .../BigInt/this-is-not-object.js | 50 ------------- .../BigInt/this-is-not-typedarray-instance.js | 42 ----------- .../values/BigInt/invoked-as-func.js | 30 -------- .../values/BigInt/invoked-as-method.js | 30 -------- .../prototype/values/BigInt/length.js | 30 -------- .../prototype/values/BigInt/name.js | 27 ------- .../prototype/values/BigInt/prop-desc.js | 19 ----- .../values/BigInt/this-is-not-object.js | 52 ------------- .../BigInt/this-is-not-typedarray-instance.js | 44 ----------- ...set-throws-from-modulo-element-size-sab.js | 5 -- ...eoffset-throws-from-modulo-element-size.js | 5 -- ...set-throws-from-modulo-element-size-sab.js | 5 -- ...eoffset-throws-from-modulo-element-size.js | 5 -- ...ther-ctor-buffer-ctor-not-object-throws.js | 6 +- ...-ctor-buffer-ctor-species-access-throws.js | 6 +- ...tor-buffer-ctor-species-not-ctor-throws.js | 6 +- ...or-buffer-ctor-species-prototype-throws.js | 6 +- ...y-arg-other-ctor-returns-new-typedarray.js | 10 +-- ...set-throws-from-modulo-element-size-sab.js | 5 -- ...eoffset-throws-from-modulo-element-size.js | 5 -- ...set-throws-from-modulo-element-size-sab.js | 5 -- ...eoffset-throws-from-modulo-element-size.js | 5 -- 175 files changed, 16 insertions(+), 5334 deletions(-) delete mode 100644 test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/copyWithin/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/copyWithin/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/copyWithin/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/every/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/every/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/every/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/fill/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/fill/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/fill/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/filter/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/filter/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/filter/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/find/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/find/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/find/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/findIndex/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/findIndex/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/findIndex/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/forEach/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/forEach/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/forEach/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/includes/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/includes/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/includes/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/indexOf/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/indexOf/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/indexOf/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/join/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/join/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/join/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/keys/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/keys/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/keys/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/map/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/map/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/map/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/reduce/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/reduce/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/reduce/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/reduceRight/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/reduceRight/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/reduceRight/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/reverse/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/reverse/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/reverse/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/set/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/set/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/set/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/slice/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/slice/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/slice/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/some/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/some/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/some/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/sort/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/sort/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/sort/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/subarray/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/subarray/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/subarray/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/toLocaleString/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/toLocaleString/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/toLocaleString/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-typedarray-instance.js delete mode 100644 test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-func.js delete mode 100644 test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-method.js delete mode 100644 test/built-ins/TypedArray/prototype/values/BigInt/length.js delete mode 100644 test/built-ins/TypedArray/prototype/values/BigInt/name.js delete mode 100644 test/built-ins/TypedArray/prototype/values/BigInt/prop-desc.js delete mode 100644 test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-object.js delete mode 100644 test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-typedarray-instance.js diff --git a/harness/testBigIntTypedArray.js b/harness/testBigIntTypedArray.js index f071e5515b..7b5d14e16b 100644 --- a/harness/testBigIntTypedArray.js +++ b/harness/testBigIntTypedArray.js @@ -8,13 +8,12 @@ description: | /** * The %TypedArray% intrinsic constructor function. */ -var TypedArray = Object.getPrototypeOf(Int8Array); +var TypedArray = Object.getPrototypeOf(BigInt64Array); /** * Calls the provided function for every typed array constructor. * * @param {typedArrayConstructorCallback} f - the function to call for each typed array constructor. - * @param {Array} selected - An optional Array with filtered typed arrays */ function testWithBigIntTypedArrayConstructors(f) { /** diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-func.js deleted file mode 100644 index 7559361e19..0000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.copywithin -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.5 %TypedArray%.prototype.copyWithin (target, start [, end ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var copyWithin = TypedArray.prototype.copyWithin; - -assert.sameValue(typeof copyWithin, 'function'); - -assert.throws(TypeError, function() { - copyWithin(); -}); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-method.js deleted file mode 100644 index 5a40d48c99..0000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.copywithin -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.5 %TypedArray%.prototype.copyWithin (target, start [, end ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.copyWithin, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.copyWithin(); -}); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/length.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/length.js deleted file mode 100644 index 7c635e69c9..0000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.copywithin -description: > - %TypedArray%.prototype.copyWithin.length is 2. -info: | - %TypedArray%.prototype.copyWithin (target, start [, end ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.copyWithin.length, 2); - -verifyNotEnumerable(TypedArray.prototype.copyWithin, "length"); -verifyNotWritable(TypedArray.prototype.copyWithin, "length"); -verifyConfigurable(TypedArray.prototype.copyWithin, "length"); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/name.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/name.js deleted file mode 100644 index 902c628c47..0000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.copywithin -description: > - %TypedArray%.prototype.copyWithin.name is "copyWithin". -info: | - %TypedArray%.prototype.copyWithin (target, start [, end ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.copyWithin.name, "copyWithin"); - -verifyNotEnumerable(TypedArray.prototype.copyWithin, "name"); -verifyNotWritable(TypedArray.prototype.copyWithin, "name"); -verifyConfigurable(TypedArray.prototype.copyWithin, "name"); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/prop-desc.js deleted file mode 100644 index d75e27ac0a..0000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.copywithin -description: > - "copyWithin" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'copyWithin'); -verifyWritable(TypedArrayPrototype, 'copyWithin'); -verifyConfigurable(TypedArrayPrototype, 'copyWithin'); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-object.js deleted file mode 100644 index 3c1b7c4358..0000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.copywithin -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.5 %TypedArray%.prototype.copyWithin (target, start [ , end ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var copyWithin = TypedArray.prototype.copyWithin; - -assert.throws(TypeError, function() { - copyWithin.call(undefined, 0, 0); -}, "this is undefined"); - -assert.throws(TypeError, function() { - copyWithin.call(null, 0, 0); -}, "this is null"); - -assert.throws(TypeError, function() { - copyWithin.call(42, 0, 0); -}, "this is 42"); - -assert.throws(TypeError, function() { - copyWithin.call("1", 0, 0); -}, "this is a string"); - -assert.throws(TypeError, function() { - copyWithin.call(true, 0, 0); -}, "this is true"); - -assert.throws(TypeError, function() { - copyWithin.call(false, 0, 0); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - copyWithin.call(s, 0, 0); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 95d9bfd120..0000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.copywithin -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.5 %TypedArray%.prototype.copyWithin (target, start [ , end ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var copyWithin = TypedArray.prototype.copyWithin; - -assert.throws(TypeError, function() { - copyWithin.call({}, 0, 0); -}, "this is an Object"); - -assert.throws(TypeError, function() { - copyWithin.call([], 0, 0); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - copyWithin.call(ab, 0, 0); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - copyWithin.call(dv, 0, 0); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-func.js deleted file mode 100644 index 83d64511ca..0000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.every -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.7 %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var every = TypedArray.prototype.every; - -assert.sameValue(typeof every, 'function'); - -assert.throws(TypeError, function() { - every(); -}); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-method.js deleted file mode 100644 index 2b99d4c682..0000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.every -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.7 %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.every, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.every(); -}); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/length.js b/test/built-ins/TypedArray/prototype/every/BigInt/length.js deleted file mode 100644 index cbe40ceaae..0000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.every -description: > - %TypedArray%.prototype.every.length is 1. -info: | - %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.every.length, 1); - -verifyNotEnumerable(TypedArray.prototype.every, "length"); -verifyNotWritable(TypedArray.prototype.every, "length"); -verifyConfigurable(TypedArray.prototype.every, "length"); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/name.js b/test/built-ins/TypedArray/prototype/every/BigInt/name.js deleted file mode 100644 index c7fb7d7642..0000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.every -description: > - %TypedArray%.prototype.every.name is "every". -info: | - %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.every.name, "every"); - -verifyNotEnumerable(TypedArray.prototype.every, "name"); -verifyNotWritable(TypedArray.prototype.every, "name"); -verifyConfigurable(TypedArray.prototype.every, "name"); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/every/BigInt/prop-desc.js deleted file mode 100644 index d1c570ca10..0000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.every -description: > - "every" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'every'); -verifyWritable(TypedArrayPrototype, 'every'); -verifyConfigurable(TypedArrayPrototype, 'every'); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-object.js deleted file mode 100644 index af9557ea02..0000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.every -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.7 %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var every = TypedArray.prototype.every; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - every.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - every.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - every.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - every.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - every.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - every.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - every.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 21ff576b5a..0000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.every -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.7 %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var every = TypedArray.prototype.every; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - every.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - every.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - every.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - every.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-func.js deleted file mode 100644 index f7f0936d12..0000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.fill -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.8 %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var fill = TypedArray.prototype.fill; - -assert.sameValue(typeof fill, 'function'); - -assert.throws(TypeError, function() { - fill(); -}); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-method.js deleted file mode 100644 index 897c2164b2..0000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.fill -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.8 %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.fill, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.fill(); -}); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/length.js b/test/built-ins/TypedArray/prototype/fill/BigInt/length.js deleted file mode 100644 index 6bf1feff53..0000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.fill -description: > - %TypedArray%.prototype.fill.length is 1. -info: | - %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.fill.length, 1); - -verifyNotEnumerable(TypedArray.prototype.fill, "length"); -verifyNotWritable(TypedArray.prototype.fill, "length"); -verifyConfigurable(TypedArray.prototype.fill, "length"); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/name.js b/test/built-ins/TypedArray/prototype/fill/BigInt/name.js deleted file mode 100644 index 82e72227a6..0000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.fill -description: > - %TypedArray%.prototype.fill.name is "fill". -info: | - %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.fill.name, "fill"); - -verifyNotEnumerable(TypedArray.prototype.fill, "name"); -verifyNotWritable(TypedArray.prototype.fill, "name"); -verifyConfigurable(TypedArray.prototype.fill, "name"); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/fill/BigInt/prop-desc.js deleted file mode 100644 index 752b7a282e..0000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.fill -description: > - "fill" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'fill'); -verifyWritable(TypedArrayPrototype, 'fill'); -verifyConfigurable(TypedArrayPrototype, 'fill'); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-object.js deleted file mode 100644 index 5846bbcae4..0000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.fill -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.8 %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var fill = TypedArray.prototype.fill; - -assert.throws(TypeError, function() { - fill.call(undefined, 0); -}, "this is undefined"); - -assert.throws(TypeError, function() { - fill.call(null, 0); -}, "this is null"); - -assert.throws(TypeError, function() { - fill.call(42, 0); -}, "this is 42"); - -assert.throws(TypeError, function() { - fill.call("1", 0); -}, "this is a string"); - -assert.throws(TypeError, function() { - fill.call(true, 0); -}, "this is true"); - -assert.throws(TypeError, function() { - fill.call(false, 0); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - fill.call(s, 0); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 8cb0121080..0000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.fill -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.8 %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var fill = TypedArray.prototype.fill; - -assert.throws(TypeError, function() { - fill.call({}, 0); -}, "this is an Object"); - -assert.throws(TypeError, function() { - fill.call([], 0); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - fill.call(ab, 0); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - fill.call(dv, 0); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-func.js deleted file mode 100644 index 92e9758b5a..0000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.filter -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.9 %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var filter = TypedArray.prototype.filter; - -assert.sameValue(typeof filter, 'function'); - -assert.throws(TypeError, function() { - filter(); -}); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-method.js deleted file mode 100644 index 18c818b65e..0000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.filter -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.9 %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.filter, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.filter(); -}); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/length.js b/test/built-ins/TypedArray/prototype/filter/BigInt/length.js deleted file mode 100644 index 3c0af26acc..0000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.filter -description: > - %TypedArray%.prototype.filter.length is 1. -info: | - %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.filter.length, 1); - -verifyNotEnumerable(TypedArray.prototype.filter, "length"); -verifyNotWritable(TypedArray.prototype.filter, "length"); -verifyConfigurable(TypedArray.prototype.filter, "length"); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/name.js b/test/built-ins/TypedArray/prototype/filter/BigInt/name.js deleted file mode 100644 index 4eb3d76b22..0000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.filter -description: > - %TypedArray%.prototype.filter.name is "filter". -info: | - %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.filter.name, "filter"); - -verifyNotEnumerable(TypedArray.prototype.filter, "name"); -verifyNotWritable(TypedArray.prototype.filter, "name"); -verifyConfigurable(TypedArray.prototype.filter, "name"); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/filter/BigInt/prop-desc.js deleted file mode 100644 index 37c277bcfb..0000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.filter -description: > - "filter" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'filter'); -verifyWritable(TypedArrayPrototype, 'filter'); -verifyConfigurable(TypedArrayPrototype, 'filter'); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-object.js deleted file mode 100644 index 0a8a31a276..0000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-object.js +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.filter -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.9 %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var filter = TypedArray.prototype.filter; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - filter.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - filter.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - filter.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - filter.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - filter.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - filter.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - filter.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 4bb60e605e..0000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.filter -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.9 %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var filter = TypedArray.prototype.filter; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - filter.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - filter.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - filter.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - filter.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-func.js deleted file mode 100644 index 088c3398aa..0000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.find -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.10 %TypedArray%.prototype.find (predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var find = TypedArray.prototype.find; - -assert.sameValue(typeof find, 'function'); - -assert.throws(TypeError, function() { - find(); -}); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-method.js deleted file mode 100644 index 7bb3bb7419..0000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.find -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.10 %TypedArray%.prototype.find (predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.find, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.find(); -}); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/length.js b/test/built-ins/TypedArray/prototype/find/BigInt/length.js deleted file mode 100644 index 9c8cdcaccb..0000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.find -description: > - %TypedArray%.prototype.find.length is 1. -info: | - %TypedArray%.prototype.find (predicate [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.find.length, 1); - -verifyNotEnumerable(TypedArray.prototype.find, "length"); -verifyNotWritable(TypedArray.prototype.find, "length"); -verifyConfigurable(TypedArray.prototype.find, "length"); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/name.js b/test/built-ins/TypedArray/prototype/find/BigInt/name.js deleted file mode 100644 index c84053e8ec..0000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.find -description: > - %TypedArray%.prototype.find.name is "find". -info: | - %TypedArray%.prototype.find (predicate [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.find.name, "find"); - -verifyNotEnumerable(TypedArray.prototype.find, "name"); -verifyNotWritable(TypedArray.prototype.find, "name"); -verifyConfigurable(TypedArray.prototype.find, "name"); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/find/BigInt/prop-desc.js deleted file mode 100644 index e2c5e7e9d2..0000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.find -description: > - "find" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'find'); -verifyWritable(TypedArrayPrototype, 'find'); -verifyConfigurable(TypedArrayPrototype, 'find'); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-object.js deleted file mode 100644 index 1493063520..0000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.find -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.10 %TypedArray%.prototype.find (predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var find = TypedArray.prototype.find; -var predicate = function() {}; - -assert.throws(TypeError, function() { - find.call(undefined, predicate); -}, "this is undefined"); - -assert.throws(TypeError, function() { - find.call(null, predicate); -}, "this is null"); - -assert.throws(TypeError, function() { - find.call(42, predicate); -}, "this is 42"); - -assert.throws(TypeError, function() { - find.call("1", predicate); -}, "this is a string"); - -assert.throws(TypeError, function() { - find.call(true, predicate); -}, "this is true"); - -assert.throws(TypeError, function() { - find.call(false, predicate); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - find.call(s, predicate); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 957be11524..0000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.find -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.10 %TypedArray%.prototype.find (predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var find = TypedArray.prototype.find; -var predicate = function() {}; - -assert.throws(TypeError, function() { - find.call({}, predicate); -}, "this is an Object"); - -assert.throws(TypeError, function() { - find.call([], predicate); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - find.call(ab, predicate); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - find.call(dv, predicate); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-func.js deleted file mode 100644 index f305556a17..0000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.findindex -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.11 %TypedArray%.prototype.findIndex ( predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var findIndex = TypedArray.prototype.findIndex; - -assert.sameValue(typeof findIndex, 'function'); - -assert.throws(TypeError, function() { - findIndex(); -}); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-method.js deleted file mode 100644 index 1871afdabd..0000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.findindex -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.11 %TypedArray%.prototype.findIndex ( predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.findIndex, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.findIndex(); -}); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/length.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/length.js deleted file mode 100644 index 64d37958e5..0000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.findindex -description: > - %TypedArray%.prototype.findIndex.length is 1. -info: | - %TypedArray%.prototype.findIndex (predicate [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.findIndex.length, 1); - -verifyNotEnumerable(TypedArray.prototype.findIndex, "length"); -verifyNotWritable(TypedArray.prototype.findIndex, "length"); -verifyConfigurable(TypedArray.prototype.findIndex, "length"); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/name.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/name.js deleted file mode 100644 index 84a9724a2b..0000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.findindex -description: > - %TypedArray%.prototype.findIndex.name is "findIndex". -info: | - %TypedArray%.prototype.findIndex (predicate [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.findIndex.name, "findIndex"); - -verifyNotEnumerable(TypedArray.prototype.findIndex, "name"); -verifyNotWritable(TypedArray.prototype.findIndex, "name"); -verifyConfigurable(TypedArray.prototype.findIndex, "name"); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/prop-desc.js deleted file mode 100644 index 9913a867ec..0000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.findindex -description: > - "findIndex" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'findIndex'); -verifyWritable(TypedArrayPrototype, 'findIndex'); -verifyConfigurable(TypedArrayPrototype, 'findIndex'); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-object.js deleted file mode 100644 index fedede8b08..0000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.findindex -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.11 %TypedArray%.prototype.findIndex ( predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var findIndex = TypedArray.prototype.findIndex; -var predicate = function() {}; - -assert.throws(TypeError, function() { - findIndex.call(undefined, predicate); -}, "this is undefined"); - -assert.throws(TypeError, function() { - findIndex.call(null, predicate); -}, "this is null"); - -assert.throws(TypeError, function() { - findIndex.call(42, predicate); -}, "this is 42"); - -assert.throws(TypeError, function() { - findIndex.call("1", predicate); -}, "this is a string"); - -assert.throws(TypeError, function() { - findIndex.call(true, predicate); -}, "this is true"); - -assert.throws(TypeError, function() { - findIndex.call(false, predicate); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - findIndex.call(s, predicate); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 0c1bbab00d..0000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.findindex -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.11 %TypedArray%.prototype.findIndex ( predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var findIndex = TypedArray.prototype.findIndex; -var predicate = function() {}; - -assert.throws(TypeError, function() { - findIndex.call({}, predicate); -}, "this is an Object"); - -assert.throws(TypeError, function() { - findIndex.call([], predicate); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - findIndex.call(ab, predicate); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - findIndex.call(dv, predicate); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-func.js deleted file mode 100644 index d4eb50b880..0000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.foreach -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.12 %TypedArray%.prototype.forEach ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var forEach = TypedArray.prototype.forEach; - -assert.sameValue(typeof forEach, 'function'); - -assert.throws(TypeError, function() { - forEach(); -}); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-method.js deleted file mode 100644 index f455052759..0000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.foreach -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.12 %TypedArray%.prototype.forEach ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.forEach, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.forEach(); -}); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/length.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/length.js deleted file mode 100644 index f8f9624a9e..0000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.foreach -description: > - %TypedArray%.prototype.forEach.length is 1. -info: | - %TypedArray%.prototype.forEach (callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.forEach.length, 1); - -verifyNotEnumerable(TypedArray.prototype.forEach, "length"); -verifyNotWritable(TypedArray.prototype.forEach, "length"); -verifyConfigurable(TypedArray.prototype.forEach, "length"); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/name.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/name.js deleted file mode 100644 index 36c9ffde4c..0000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.foreach -description: > - %TypedArray%.prototype.forEach.name is "forEach". -info: | - %TypedArray%.prototype.forEach (callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.forEach.name, "forEach"); - -verifyNotEnumerable(TypedArray.prototype.forEach, "name"); -verifyNotWritable(TypedArray.prototype.forEach, "name"); -verifyConfigurable(TypedArray.prototype.forEach, "name"); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/prop-desc.js deleted file mode 100644 index b095a89f2a..0000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.foreach -description: > - "forEach" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'forEach'); -verifyWritable(TypedArrayPrototype, 'forEach'); -verifyConfigurable(TypedArrayPrototype, 'forEach'); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-object.js deleted file mode 100644 index 6317c05d5d..0000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.foreach -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.12 %TypedArray%.prototype.forEach ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var forEach = TypedArray.prototype.forEach; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - forEach.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - forEach.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - forEach.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - forEach.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - forEach.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - forEach.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - forEach.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 33db208c96..0000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.foreach -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.12 %TypedArray%.prototype.forEach ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var forEach = TypedArray.prototype.forEach; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - forEach.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - forEach.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - forEach.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - forEach.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-func.js deleted file mode 100644 index cb8069bc37..0000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.includes -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.14 %TypedArray%.prototype.includes ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var includes = TypedArray.prototype.includes; - -assert.sameValue(typeof includes, "function"); - -assert.throws(TypeError, function() { - includes(); -}); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-method.js deleted file mode 100644 index 78f7428a10..0000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.includes -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.14 %TypedArray%.prototype.includes ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.includes, "function"); - -assert.throws(TypeError, function() { - TypedArrayPrototype.includes(); -}); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/length.js b/test/built-ins/TypedArray/prototype/includes/BigInt/length.js deleted file mode 100644 index f438ccd6f2..0000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.includes -description: > - %TypedArray%.prototype.includes.length is 1. -info: | - %TypedArray%.prototype.includes ( searchElement [ , fromIndex ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.includes.length, 1); - -verifyNotEnumerable(TypedArray.prototype.includes, "length"); -verifyNotWritable(TypedArray.prototype.includes, "length"); -verifyConfigurable(TypedArray.prototype.includes, "length"); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/name.js b/test/built-ins/TypedArray/prototype/includes/BigInt/name.js deleted file mode 100644 index 4d90c44c85..0000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.includes -description: > - %TypedArray%.prototype.includes.name is "includes". -info: | - %TypedArray%.prototype.includes (searchElement [ , fromIndex ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.includes.name, "includes"); - -verifyNotEnumerable(TypedArray.prototype.includes, "name"); -verifyNotWritable(TypedArray.prototype.includes, "name"); -verifyConfigurable(TypedArray.prototype.includes, "name"); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/includes/BigInt/prop-desc.js deleted file mode 100644 index fa4630d517..0000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.includes -description: > - "includes" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, "includes"); -verifyWritable(TypedArrayPrototype, "includes"); -verifyConfigurable(TypedArrayPrototype, "includes"); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-object.js deleted file mode 100644 index 88a42bcdfa..0000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.includes -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.14 %TypedArray%.prototype.includes ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var includes = TypedArray.prototype.includes; - -assert.throws(TypeError, function() { - includes.call(undefined, 42); -}, "this is undefined"); - -assert.throws(TypeError, function() { - includes.call(null, 42); -}, "this is null"); - -assert.throws(TypeError, function() { - includes.call(42, 42); -}, "this is 42"); - -assert.throws(TypeError, function() { - includes.call("1", 42); -}, "this is a string"); - -assert.throws(TypeError, function() { - includes.call(true, 42); -}, "this is true"); - -assert.throws(TypeError, function() { - includes.call(false, 42); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - includes.call(s, 42); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 713fe26dd3..0000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.includes -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.14 %TypedArray%.prototype.includes ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var includes = TypedArray.prototype.includes; - -assert.throws(TypeError, function() { - includes.call({}, 42); -}, "this is an Object"); - -assert.throws(TypeError, function() { - includes.call([], 42); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - includes.call(ab, 42); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - includes.call(dv, 42); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-func.js deleted file mode 100644 index f2d8ff705c..0000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.indexof -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.13 %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var indexOf = TypedArray.prototype.indexOf; - -assert.sameValue(typeof indexOf, 'function'); - -assert.throws(TypeError, function() { - indexOf(); -}); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-method.js deleted file mode 100644 index 80560a9ad9..0000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.indexof -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.13 %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.indexOf, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.indexOf(); -}); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/length.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/length.js deleted file mode 100644 index d39f7dab99..0000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.indexof -description: > - %TypedArray%.prototype.indexOf.length is 1. -info: | - %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.indexOf.length, 1); - -verifyNotEnumerable(TypedArray.prototype.indexOf, "length"); -verifyNotWritable(TypedArray.prototype.indexOf, "length"); -verifyConfigurable(TypedArray.prototype.indexOf, "length"); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/name.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/name.js deleted file mode 100644 index 93ad66115d..0000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.indexof -description: > - %TypedArray%.prototype.indexOf.name is "indexOf". -info: | - %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.indexOf.name, "indexOf"); - -verifyNotEnumerable(TypedArray.prototype.indexOf, "name"); -verifyNotWritable(TypedArray.prototype.indexOf, "name"); -verifyConfigurable(TypedArray.prototype.indexOf, "name"); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/prop-desc.js deleted file mode 100644 index aab1497373..0000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.indexof -description: > - "indexOf" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'indexOf'); -verifyWritable(TypedArrayPrototype, 'indexOf'); -verifyConfigurable(TypedArrayPrototype, 'indexOf'); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-object.js deleted file mode 100644 index c572d7dd35..0000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.indexof -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.13 %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var indexOf = TypedArray.prototype.indexOf; - -assert.throws(TypeError, function() { - indexOf.call(undefined, 42); -}, "this is undefined"); - -assert.throws(TypeError, function() { - indexOf.call(null, 42); -}, "this is null"); - -assert.throws(TypeError, function() { - indexOf.call(42, 42); -}, "this is 42"); - -assert.throws(TypeError, function() { - indexOf.call("1", 42); -}, "this is a string"); - -assert.throws(TypeError, function() { - indexOf.call(true, 42); -}, "this is true"); - -assert.throws(TypeError, function() { - indexOf.call(false, 42); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - indexOf.call(s, 42); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 753fc3f791..0000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.indexof -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.13 %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var indexOf = TypedArray.prototype.indexOf; - -assert.throws(TypeError, function() { - indexOf.call({}, 42); -}, "this is an Object"); - -assert.throws(TypeError, function() { - indexOf.call([], 42); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - indexOf.call(ab, 42); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - indexOf.call(dv, 42); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-func.js deleted file mode 100644 index 1340f39314..0000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.join -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.14 %TypedArray%.prototype.join ( separator ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var join = TypedArray.prototype.join; - -assert.sameValue(typeof join, 'function'); - -assert.throws(TypeError, function() { - join(); -}); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-method.js deleted file mode 100644 index 1121e42aac..0000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.join -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.14 %TypedArray%.prototype.join ( separator ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.join, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.join(); -}); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/length.js b/test/built-ins/TypedArray/prototype/join/BigInt/length.js deleted file mode 100644 index 6e1332323a..0000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.join -description: > - %TypedArray%.prototype.join.length is 1. -info: | - %TypedArray%.prototype.join ( separator ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.join.length, 1); - -verifyNotEnumerable(TypedArray.prototype.join, "length"); -verifyNotWritable(TypedArray.prototype.join, "length"); -verifyConfigurable(TypedArray.prototype.join, "length"); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/name.js b/test/built-ins/TypedArray/prototype/join/BigInt/name.js deleted file mode 100644 index c7a1bfdfcb..0000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.join -description: > - %TypedArray%.prototype.join.name is "join". -info: | - %TypedArray%.prototype.join ( separator ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.join.name, "join"); - -verifyNotEnumerable(TypedArray.prototype.join, "name"); -verifyNotWritable(TypedArray.prototype.join, "name"); -verifyConfigurable(TypedArray.prototype.join, "name"); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/join/BigInt/prop-desc.js deleted file mode 100644 index f1ab91a062..0000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.join -description: > - "join" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'join'); -verifyWritable(TypedArrayPrototype, 'join'); -verifyConfigurable(TypedArrayPrototype, 'join'); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-object.js deleted file mode 100644 index 6f04ef810f..0000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.join -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.15 %TypedArray%.prototype.join ( separator ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var join = TypedArray.prototype.join; - -assert.throws(TypeError, function() { - join.call(undefined, ""); -}, "this is undefined"); - -assert.throws(TypeError, function() { - join.call(null, ""); -}, "this is null"); - -assert.throws(TypeError, function() { - join.call(42, ""); -}, "this is 42"); - -assert.throws(TypeError, function() { - join.call("1", ""); -}, "this is a string"); - -assert.throws(TypeError, function() { - join.call(true, ""); -}, "this is true"); - -assert.throws(TypeError, function() { - join.call(false, ""); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - join.call(s, ""); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 582c99f3d1..0000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.join -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.15 %TypedArray%.prototype.join ( separator ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var join = TypedArray.prototype.join; - -assert.throws(TypeError, function() { - join.call({}, ""); -}, "this is an Object"); - -assert.throws(TypeError, function() { - join.call([], ""); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - join.call(ab, ""); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - join.call(dv, ""); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-func.js deleted file mode 100644 index 2b04ed7f26..0000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.keys -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.15 %TypedArray%.prototype.keys ( ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var keys = TypedArray.prototype.keys; - -assert.sameValue(typeof keys, 'function'); - -assert.throws(TypeError, function() { - keys(); -}); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-method.js deleted file mode 100644 index 9e67e8b903..0000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.keys -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.15 %TypedArray%.prototype.keys ( ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.keys, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.keys(); -}); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/length.js b/test/built-ins/TypedArray/prototype/keys/BigInt/length.js deleted file mode 100644 index 0f4b206a53..0000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.keys -description: > - %TypedArray%.prototype.keys.length is 0. -info: | - %TypedArray%.prototype.keys ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.keys.length, 0); - -verifyNotEnumerable(TypedArray.prototype.keys, "length"); -verifyNotWritable(TypedArray.prototype.keys, "length"); -verifyConfigurable(TypedArray.prototype.keys, "length"); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/name.js b/test/built-ins/TypedArray/prototype/keys/BigInt/name.js deleted file mode 100644 index da53744cad..0000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.keys -description: > - %TypedArray%.prototype.keys.name is "keys". -info: | - %TypedArray%.prototype.keys ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.keys.name, "keys"); - -verifyNotEnumerable(TypedArray.prototype.keys, "name"); -verifyNotWritable(TypedArray.prototype.keys, "name"); -verifyConfigurable(TypedArray.prototype.keys, "name"); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/keys/BigInt/prop-desc.js deleted file mode 100644 index 74b5908dc6..0000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.keys -description: > - "keys" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'keys'); -verifyWritable(TypedArrayPrototype, 'keys'); -verifyConfigurable(TypedArrayPrototype, 'keys'); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-object.js deleted file mode 100644 index 7fd0c8f051..0000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-object.js +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.keys -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.16 %TypedArray%.prototype.keys ( ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var keys = TypedArray.prototype.keys; - -assert.throws(TypeError, function() { - keys.call(undefined); -}, "this is undefined"); - -assert.throws(TypeError, function() { - keys.call(null); -}, "this is null"); - -assert.throws(TypeError, function() { - keys.call(42); -}, "this is 42"); - -assert.throws(TypeError, function() { - keys.call("1"); -}, "this is a string"); - -assert.throws(TypeError, function() { - keys.call(true); -}, "this is true"); - -assert.throws(TypeError, function() { - keys.call(false); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - keys.call(s); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 6978bfb3d6..0000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.keys -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.16 %TypedArray%.prototype.keys ( ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var keys = TypedArray.prototype.keys; - -assert.throws(TypeError, function() { - keys.call({}); -}, "this is an Object"); - -assert.throws(TypeError, function() { - keys.call([]); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - keys.call(ab); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - keys.call(dv); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-func.js deleted file mode 100644 index 3f98220506..0000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.lastindexof -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.16 %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var lastIndexOf = TypedArray.prototype.lastIndexOf; - -assert.sameValue(typeof lastIndexOf, 'function'); - -assert.throws(TypeError, function() { - lastIndexOf(); -}); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-method.js deleted file mode 100644 index 3f034e4218..0000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.lastindexof -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.16 %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.lastIndexOf, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.lastIndexOf(); -}); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/length.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/length.js deleted file mode 100644 index dbc89d4736..0000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.lastindexof -description: > - %TypedArray%.prototype.lastIndexOf.length is 1. -info: | - %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.lastIndexOf.length, 1); - -verifyNotEnumerable(TypedArray.prototype.lastIndexOf, "length"); -verifyNotWritable(TypedArray.prototype.lastIndexOf, "length"); -verifyConfigurable(TypedArray.prototype.lastIndexOf, "length"); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/name.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/name.js deleted file mode 100644 index b4216d1903..0000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.lastindexof -description: > - %TypedArray%.prototype.lastIndexOf.name is "lastIndexOf". -info: | - %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.lastIndexOf.name, "lastIndexOf"); - -verifyNotEnumerable(TypedArray.prototype.lastIndexOf, "name"); -verifyNotWritable(TypedArray.prototype.lastIndexOf, "name"); -verifyConfigurable(TypedArray.prototype.lastIndexOf, "name"); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/prop-desc.js deleted file mode 100644 index 52a04ab83e..0000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.lastindexof -description: > - "lastIndexOf" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'lastIndexOf'); -verifyWritable(TypedArrayPrototype, 'lastIndexOf'); -verifyConfigurable(TypedArrayPrototype, 'lastIndexOf'); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-object.js deleted file mode 100644 index 02a4312c08..0000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.lastindexof -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.17 %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var lastIndexOf = TypedArray.prototype.lastIndexOf; - -assert.throws(TypeError, function() { - lastIndexOf.call(undefined, 42); -}, "this is undefined"); - -assert.throws(TypeError, function() { - lastIndexOf.call(null, 42); -}, "this is null"); - -assert.throws(TypeError, function() { - lastIndexOf.call(42, 42); -}, "this is 42"); - -assert.throws(TypeError, function() { - lastIndexOf.call("1", 42); -}, "this is a string"); - -assert.throws(TypeError, function() { - lastIndexOf.call(true, 42); -}, "this is true"); - -assert.throws(TypeError, function() { - lastIndexOf.call(false, 42); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - lastIndexOf.call(s, 42); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index e59dc5c536..0000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.lastindexof -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.17 %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var lastIndexOf = TypedArray.prototype.lastIndexOf; - -assert.throws(TypeError, function() { - lastIndexOf.call({}, 42); -}, "this is an Object"); - -assert.throws(TypeError, function() { - lastIndexOf.call([], 42); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - lastIndexOf.call(ab, 42); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - lastIndexOf.call(dv, 42); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-func.js deleted file mode 100644 index 20e5bb5344..0000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.map -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.18 %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var map = TypedArray.prototype.map; - -assert.sameValue(typeof map, 'function'); - -assert.throws(TypeError, function() { - map(); -}); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-method.js deleted file mode 100644 index 7f03579fd4..0000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.map -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.18 %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.map, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.map(); -}); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/length.js b/test/built-ins/TypedArray/prototype/map/BigInt/length.js deleted file mode 100644 index 95a983b03c..0000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.map -description: > - %TypedArray%.prototype.map.length is 1. -info: | - %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.map.length, 1); - -verifyNotEnumerable(TypedArray.prototype.map, "length"); -verifyNotWritable(TypedArray.prototype.map, "length"); -verifyConfigurable(TypedArray.prototype.map, "length"); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/name.js b/test/built-ins/TypedArray/prototype/map/BigInt/name.js deleted file mode 100644 index 0f54d40cb7..0000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.map -description: > - %TypedArray%.prototype.map.name is "map". -info: | - %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.map.name, "map"); - -verifyNotEnumerable(TypedArray.prototype.map, "name"); -verifyNotWritable(TypedArray.prototype.map, "name"); -verifyConfigurable(TypedArray.prototype.map, "name"); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/map/BigInt/prop-desc.js deleted file mode 100644 index ea1d8805fc..0000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.map -description: > - "map" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'map'); -verifyWritable(TypedArrayPrototype, 'map'); -verifyConfigurable(TypedArrayPrototype, 'map'); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-object.js deleted file mode 100644 index 50fa543a6d..0000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.map -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.19 %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var map = TypedArray.prototype.map; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - map.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - map.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - map.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - map.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - map.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - map.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - map.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 97266d7495..0000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.map -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.19 %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var map = TypedArray.prototype.map; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - map.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - map.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - map.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - map.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-func.js deleted file mode 100644 index 6b0406b58f..0000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reduce -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.19 %TypedArray%.prototype.reduce ( callbackfn [ , initialValue ] ) - - ... - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var reduce = TypedArray.prototype.reduce; - -assert.sameValue(typeof reduce, 'function'); - -assert.throws(TypeError, function() { - reduce(); -}); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-method.js deleted file mode 100644 index 609adb498e..0000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reduce -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.19 %TypedArray%.prototype.reduce ( callbackfn [ , initialValue ] ) - - ... - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.reduce, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.reduce(); -}); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/length.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/length.js deleted file mode 100644 index bb04ee94fb..0000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.reduce -description: > - %TypedArray%.prototype.reduce.length is 1. -info: | - %TypedArray%.prototype.reduce ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.reduce.length, 1); - -verifyNotEnumerable(TypedArray.prototype.reduce, "length"); -verifyNotWritable(TypedArray.prototype.reduce, "length"); -verifyConfigurable(TypedArray.prototype.reduce, "length"); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/name.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/name.js deleted file mode 100644 index e07d1dfa54..0000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.reduce -description: > - %TypedArray%.prototype.reduce.name is "reduce". -info: | - %TypedArray%.prototype.reduce ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.reduce.name, "reduce"); - -verifyNotEnumerable(TypedArray.prototype.reduce, "name"); -verifyNotWritable(TypedArray.prototype.reduce, "name"); -verifyConfigurable(TypedArray.prototype.reduce, "name"); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/prop-desc.js deleted file mode 100644 index ed8d8a42c1..0000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reduce -description: > - "reduce" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'reduce'); -verifyWritable(TypedArrayPrototype, 'reduce'); -verifyConfigurable(TypedArrayPrototype, 'reduce'); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-object.js deleted file mode 100644 index 14680f3d44..0000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reduce -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.20 %TypedArray%.prototype.reduce ( callbackfn [ , initialValue ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var reduce = TypedArray.prototype.reduce; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - reduce.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - reduce.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - reduce.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - reduce.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - reduce.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - reduce.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - reduce.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 6dedc8cd2b..0000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reduce -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.20 %TypedArray%.prototype.reduce ( callbackfn [ , initialValue ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var reduce = TypedArray.prototype.reduce; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - reduce.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - reduce.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - reduce.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - reduce.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-func.js deleted file mode 100644 index 9a0fec0930..0000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reduceright -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.20 %TypedArray%.prototype.reduceRight ( callbackfn [ , initialValue ] ) - - ... - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var reduceRight = TypedArray.prototype.reduceRight; - -assert.sameValue(typeof reduceRight, 'function'); - -assert.throws(TypeError, function() { - reduceRight(); -}); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-method.js deleted file mode 100644 index d36832aa2d..0000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reduceright -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.20 %TypedArray%.prototype.reduceRight ( callbackfn [ , initialValue ] ) - - ... - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.reduceRight, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.reduceRight(); -}); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/length.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/length.js deleted file mode 100644 index 8cf3d8d6ac..0000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.reduceright -description: > - %TypedArray%.prototype.reduceRight.length is 1. -info: | - %TypedArray%.prototype.reduceRight ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.reduceRight.length, 1); - -verifyNotEnumerable(TypedArray.prototype.reduceRight, "length"); -verifyNotWritable(TypedArray.prototype.reduceRight, "length"); -verifyConfigurable(TypedArray.prototype.reduceRight, "length"); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/name.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/name.js deleted file mode 100644 index fb63b3a351..0000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.reduceright -description: > - %TypedArray%.prototype.reduceRight.name is "reduceRight". -info: | - %TypedArray%.prototype.reduceRight ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.reduceRight.name, "reduceRight"); - -verifyNotEnumerable(TypedArray.prototype.reduceRight, "name"); -verifyNotWritable(TypedArray.prototype.reduceRight, "name"); -verifyConfigurable(TypedArray.prototype.reduceRight, "name"); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/prop-desc.js deleted file mode 100644 index 0d6f4d2fdd..0000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reduceright -description: > - "reduceRight" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'reduceRight'); -verifyWritable(TypedArrayPrototype, 'reduceRight'); -verifyConfigurable(TypedArrayPrototype, 'reduceRight'); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-object.js deleted file mode 100644 index fccf9de2bf..0000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reduceright -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.21 %TypedArray%.prototype.reduceRight ( callbackfn [ , initialValue ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var reduceRight = TypedArray.prototype.reduceRight; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - reduceRight.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - reduceRight.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - reduceRight.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - reduceRight.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - reduceRight.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - reduceRight.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - reduceRight.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 8092e93e93..0000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reduceright -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.21 %TypedArray%.prototype.reduceRight ( callbackfn [ , initialValue ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var reduceRight = TypedArray.prototype.reduceRight; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - reduceRight.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - reduceRight.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - reduceRight.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - reduceRight.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-func.js deleted file mode 100644 index 48e16d6be6..0000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reverse -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.21 %TypedArray%.prototype.reverse ( ) - - ... - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var reverse = TypedArray.prototype.reverse; - -assert.sameValue(typeof reverse, 'function'); - -assert.throws(TypeError, function() { - reverse(); -}); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-method.js deleted file mode 100644 index 601ce65ff6..0000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reverse -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.21 %TypedArray%.prototype.reverse ( ) - - ... - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.reverse, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.reverse(); -}); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/length.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/length.js deleted file mode 100644 index 22545aeb08..0000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.reverse -description: > - %TypedArray%.prototype.reverse.length is 0. -info: | - %TypedArray%.prototype.reverse ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.reverse.length, 0); - -verifyNotEnumerable(TypedArray.prototype.reverse, "length"); -verifyNotWritable(TypedArray.prototype.reverse, "length"); -verifyConfigurable(TypedArray.prototype.reverse, "length"); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/name.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/name.js deleted file mode 100644 index 2fda014b24..0000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.reverse -description: > - %TypedArray%.prototype.reverse.name is "reverse". -info: | - %TypedArray%.prototype.reverse ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.reverse.name, "reverse"); - -verifyNotEnumerable(TypedArray.prototype.reverse, "name"); -verifyNotWritable(TypedArray.prototype.reverse, "name"); -verifyConfigurable(TypedArray.prototype.reverse, "name"); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/prop-desc.js deleted file mode 100644 index 3bd6e881df..0000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reverse -description: > - "reverse" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'reverse'); -verifyWritable(TypedArrayPrototype, 'reverse'); -verifyConfigurable(TypedArrayPrototype, 'reverse'); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-object.js deleted file mode 100644 index 82255a3454..0000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reverse -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.22 %TypedArray%.prototype.reverse ( ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var reverse = TypedArray.prototype.reverse; - -assert.throws(TypeError, function() { - reverse.call(undefined); -}, "this is undefined"); - -assert.throws(TypeError, function() { - reverse.call(null); -}, "this is null"); - -assert.throws(TypeError, function() { - reverse.call(42); -}, "this is 42"); - -assert.throws(TypeError, function() { - reverse.call("1"); -}, "this is a string"); - -assert.throws(TypeError, function() { - reverse.call(true); -}, "this is true"); - -assert.throws(TypeError, function() { - reverse.call(false); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - reverse.call(s); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 07b5138d99..0000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.reverse -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.22 %TypedArray%.prototype.reverse ( ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var reverse = TypedArray.prototype.reverse; - -assert.throws(TypeError, function() { - reverse.call({}); -}, "this is an Object"); - -assert.throws(TypeError, function() { - reverse.call([]); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - reverse.call(ab); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - reverse.call(dv); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-func.js deleted file mode 100644 index ee55b5aa41..0000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-func.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.set -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.22 %TypedArray%.prototype.set ( overloaded [ , offset ]) - - This function is not generic. The this value must be an object with a - [[TypedArrayName]] internal slot. -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var set = TypedArray.prototype.set; - -assert.sameValue(typeof set, 'function'); - -assert.throws(TypeError, function() { - set(); -}); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-method.js deleted file mode 100644 index 1b0a086985..0000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-method.js +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.set -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.22 %TypedArray%.prototype.set ( overloaded [ , offset ]) - - This function is not generic. The this value must be an object with a - [[TypedArrayName]] internal slot. -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.set, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.set(); -}); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/length.js b/test/built-ins/TypedArray/prototype/set/BigInt/length.js deleted file mode 100644 index 2f1001cd07..0000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.set -description: > - %TypedArray%.prototype.set.length is 1. -info: | - %TypedArray%.prototype.set ( overloaded [ , offset ]) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.set.length, 1); - -verifyNotEnumerable(TypedArray.prototype.set, "length"); -verifyNotWritable(TypedArray.prototype.set, "length"); -verifyConfigurable(TypedArray.prototype.set, "length"); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/name.js b/test/built-ins/TypedArray/prototype/set/BigInt/name.js deleted file mode 100644 index 85d386c7cd..0000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.set -description: > - %TypedArray%.prototype.set.name is "set". -info: | - %TypedArray%.prototype.set ( overloaded [ , offset ]) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.set.name, "set"); - -verifyNotEnumerable(TypedArray.prototype.set, "name"); -verifyNotWritable(TypedArray.prototype.set, "name"); -verifyConfigurable(TypedArray.prototype.set, "name"); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/set/BigInt/prop-desc.js deleted file mode 100644 index ca3c8bc155..0000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.set -description: > - "set" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'set'); -verifyWritable(TypedArrayPrototype, 'set'); -verifyConfigurable(TypedArrayPrototype, 'set'); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-object.js deleted file mode 100644 index d1b6242e9d..0000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-object.js +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.set-overloaded-offset -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.23 %TypedArray%.prototype.set - - ... - 2. Let target be the this value. - 3. If Type(target) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var set = TypedArray.prototype.set; - -assert.throws(TypeError, function() { - set.call(undefined, []); -}, "this is undefined"); - -assert.throws(TypeError, function() { - set.call(null, []); -}, "this is null"); - -assert.throws(TypeError, function() { - set.call(undefined, new Int8Array()); -}, "this is undefined"); - -assert.throws(TypeError, function() { - set.call(null, new Int8Array()); -}, "this is null"); - -assert.throws(TypeError, function() { - set.call(42, []); -}, "this is 42"); - -assert.throws(TypeError, function() { - set.call("1", []); -}, "this is a string"); - -assert.throws(TypeError, function() { - set.call(true, []); -}, "this is true"); - -assert.throws(TypeError, function() { - set.call(false, []); -}, "this is false"); - -var s1 = Symbol("s"); -assert.throws(TypeError, function() { - set.call(s1, []); -}, "this is a Symbol"); - -assert.throws(TypeError, function() { - set.call(42, new Int8Array(1)); -}, "this is 42"); - -assert.throws(TypeError, function() { - set.call("1", new Int8Array(1)); -}, "this is a string"); - -assert.throws(TypeError, function() { - set.call(true, new Int8Array(1)); -}, "this is true"); - -assert.throws(TypeError, function() { - set.call(false, new Int8Array(1)); -}, "this is false"); - -var s2 = Symbol("s"); -assert.throws(TypeError, function() { - set.call(s2, new Int8Array(1)); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 77220ea6a7..0000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.set-overloaded-offset -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.23 %TypedArray%.prototype.set - - ... - 2. Let target be the this value. - 3. If Type(target) is not Object, throw a TypeError exception. - 4. If target does not have a [[TypedArrayName]] internal slot, throw a - TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var set = TypedArray.prototype.set; - -assert.throws(TypeError, function() { - set.call({}, []); -}, "this is an Object"); - -assert.throws(TypeError, function() { - set.call([], []); -}, "this is an Array"); - -var ab1 = new ArrayBuffer(8); -assert.throws(TypeError, function() { - set.call(ab1, []); -}, "this is an ArrayBuffer instance"); - -var dv1 = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - set.call(dv1, []); -}, "this is a DataView instance"); - -assert.throws(TypeError, function() { - set.call({}, new Int8Array()); -}, "this is an Object"); - -assert.throws(TypeError, function() { - set.call([], new Int8Array()); -}, "this is an Array"); - -var ab2 = new ArrayBuffer(8); -assert.throws(TypeError, function() { - set.call(ab2, new Int8Array()); -}, "this is an ArrayBuffer instance"); - -var dv2 = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - set.call(dv2, new Int8Array()); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-func.js deleted file mode 100644 index 31645fbb41..0000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.slice -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.23 %TypedArray%.prototype.slice ( start, end ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var slice = TypedArray.prototype.slice; - -assert.sameValue(typeof slice, 'function'); - -assert.throws(TypeError, function() { - slice(); -}); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-method.js deleted file mode 100644 index 4b9c7c4ff8..0000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.slice -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.23 %TypedArray%.prototype.slice ( start, end ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.slice, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.slice(); -}); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/length.js b/test/built-ins/TypedArray/prototype/slice/BigInt/length.js deleted file mode 100644 index 57d76ac141..0000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.slice -description: > - %TypedArray%.prototype.slice.length is 2. -info: | - %TypedArray%.prototype.slice ( start, end ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.slice.length, 2); - -verifyNotEnumerable(TypedArray.prototype.slice, "length"); -verifyNotWritable(TypedArray.prototype.slice, "length"); -verifyConfigurable(TypedArray.prototype.slice, "length"); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/name.js b/test/built-ins/TypedArray/prototype/slice/BigInt/name.js deleted file mode 100644 index 4021a1c507..0000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.slice -description: > - %TypedArray%.prototype.slice.name is "slice". -info: | - %TypedArray%.prototype.slice ( start, end ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.slice.name, "slice"); - -verifyNotEnumerable(TypedArray.prototype.slice, "name"); -verifyNotWritable(TypedArray.prototype.slice, "name"); -verifyConfigurable(TypedArray.prototype.slice, "name"); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/slice/BigInt/prop-desc.js deleted file mode 100644 index d97889d479..0000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.slice -description: > - "slice" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'slice'); -verifyWritable(TypedArrayPrototype, 'slice'); -verifyConfigurable(TypedArrayPrototype, 'slice'); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-object.js deleted file mode 100644 index a16cf1c8cb..0000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-object.js +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.slice -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.24 %TypedArray%.prototype.slice ( start, end ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var slice = TypedArray.prototype.slice; - -assert.throws(TypeError, function() { - slice.call(undefined, 0, 0); -}, "this is undefined"); - -assert.throws(TypeError, function() { - slice.call(null, 0, 0); -}, "this is null"); - -assert.throws(TypeError, function() { - slice.call(42, 0, 0); -}, "this is 42"); - -assert.throws(TypeError, function() { - slice.call("1", 0, 0); -}, "this is a string"); - -assert.throws(TypeError, function() { - slice.call(true, 0, 0); -}, "this is true"); - -assert.throws(TypeError, function() { - slice.call(false, 0, 0); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - slice.call(s, 0, 0); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index ad429c8a15..0000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.slice -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.24 %TypedArray%.prototype.slice ( start, end ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var slice = TypedArray.prototype.slice; - -assert.throws(TypeError, function() { - slice.call({}, 0, 0); -}, "this is an Object"); - -assert.throws(TypeError, function() { - slice.call([], 0, 0); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - slice.call(ab, 0, 0); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - slice.call(dv, 0, 0); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-func.js deleted file mode 100644 index 4be0d0c6c2..0000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.some -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.24 %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var some = TypedArray.prototype.some; - -assert.sameValue(typeof some, 'function'); - -assert.throws(TypeError, function() { - some(); -}); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-method.js deleted file mode 100644 index 71b8fd36df..0000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.some -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.24 %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.some, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.some(); -}); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/length.js b/test/built-ins/TypedArray/prototype/some/BigInt/length.js deleted file mode 100644 index ee214df0fd..0000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.some -description: > - %TypedArray%.prototype.some.length is 1. -info: | - %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.some.length, 1); - -verifyNotEnumerable(TypedArray.prototype.some, "length"); -verifyNotWritable(TypedArray.prototype.some, "length"); -verifyConfigurable(TypedArray.prototype.some, "length"); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/name.js b/test/built-ins/TypedArray/prototype/some/BigInt/name.js deleted file mode 100644 index 8bf75d8ea6..0000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.some -description: > - %TypedArray%.prototype.some.name is "some". -info: | - %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.some.name, "some"); - -verifyNotEnumerable(TypedArray.prototype.some, "name"); -verifyNotWritable(TypedArray.prototype.some, "name"); -verifyConfigurable(TypedArray.prototype.some, "name"); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/some/BigInt/prop-desc.js deleted file mode 100644 index 59a567362f..0000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.some -description: > - "some" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'some'); -verifyWritable(TypedArrayPrototype, 'some'); -verifyConfigurable(TypedArrayPrototype, 'some'); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-object.js deleted file mode 100644 index cc7aba63fb..0000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.some -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.25 %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var some = TypedArray.prototype.some; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - some.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - some.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - some.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - some.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - some.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - some.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - some.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 3cc3bb41f0..0000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.some -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.25 %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var some = TypedArray.prototype.some; -var callbackfn = function () {}; - -assert.throws(TypeError, function() { - some.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - some.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - some.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - some.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-func.js deleted file mode 100644 index 760443c6f4..0000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-func.js +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.sort -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.25 %TypedArray%.prototype.sort ( comparefn ) - - ... - This function is not generic. The this value must be an object with a - [[TypedArrayName]] internal slot. - ... - - 1. Let obj be the this value as the argument. - 2. Let buffer be ValidateTypedArray(obj). - 3. ReturnIfAbrupt(buffer). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var sort = TypedArray.prototype.sort; - -assert.sameValue(typeof sort, 'function'); - -assert.throws(TypeError, function() { - sort(); -}); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-method.js deleted file mode 100644 index e288c99e56..0000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-method.js +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.sort -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.25 %TypedArray%.prototype.sort ( comparefn ) - - ... - This function is not generic. The this value must be an object with a - [[TypedArrayName]] internal slot. - ... - - 1. Let obj be the this value as the argument. - 2. Let buffer be ValidateTypedArray(obj). - 3. ReturnIfAbrupt(buffer). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.sort, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.sort(); -}); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/length.js b/test/built-ins/TypedArray/prototype/sort/BigInt/length.js deleted file mode 100644 index c6bbb9f28c..0000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.sort -description: > - %TypedArray%.prototype.sort.length is 1. -info: | - %TypedArray%.prototype.sort ( comparefn ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.sort.length, 1); - -verifyNotEnumerable(TypedArray.prototype.sort, "length"); -verifyNotWritable(TypedArray.prototype.sort, "length"); -verifyConfigurable(TypedArray.prototype.sort, "length"); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/name.js b/test/built-ins/TypedArray/prototype/sort/BigInt/name.js deleted file mode 100644 index 5f516c540a..0000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.sort -description: > - %TypedArray%.prototype.sort.name is "sort". -info: | - %TypedArray%.prototype.sort ( comparefn ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.sort.name, "sort"); - -verifyNotEnumerable(TypedArray.prototype.sort, "name"); -verifyNotWritable(TypedArray.prototype.sort, "name"); -verifyConfigurable(TypedArray.prototype.sort, "name"); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/sort/BigInt/prop-desc.js deleted file mode 100644 index 86fc9e32b0..0000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.sort -description: > - "sort" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'sort'); -verifyWritable(TypedArrayPrototype, 'sort'); -verifyConfigurable(TypedArrayPrototype, 'sort'); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-object.js deleted file mode 100644 index 9c8a4c7fbb..0000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.sort -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.26 %TypedArray%.prototype.sort ( comparefn ) - - 1. Let obj be the this value as the argument. - 2. Let buffer be ? ValidateTypedArray(obj). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var sort = TypedArray.prototype.sort; -var comparefn = function() {}; - -assert.throws(TypeError, function() { - sort.call(undefined, comparefn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - sort.call(null, comparefn); -}, "this is null"); - -assert.throws(TypeError, function() { - sort.call(42, comparefn); -}, "this is 42"); - -assert.throws(TypeError, function() { - sort.call("1", comparefn); -}, "this is a string"); - -assert.throws(TypeError, function() { - sort.call(true, comparefn); -}, "this is true"); - -assert.throws(TypeError, function() { - sort.call(false, comparefn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - sort.call(s, comparefn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 74e47bae58..0000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.sort -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.26 %TypedArray%.prototype.sort ( comparefn ) - - 1. Let obj be the this value as the argument. - 2. Let buffer be ? ValidateTypedArray(obj). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var sort = TypedArray.prototype.sort; -var comparefn = function() {}; - -assert.throws(TypeError, function() { - sort.call({}, comparefn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - sort.call([], comparefn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - sort.call(ab, comparefn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - sort.call(dv, comparefn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-func.js deleted file mode 100644 index dc28bbf0e1..0000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-func.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.subarray -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.26 %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) - - 1. Let O be the this value. - 2. If Type(O) is not Object, throw a TypeError exception. - 3. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var subarray = TypedArray.prototype.subarray; - -assert.sameValue(typeof subarray, 'function'); - -assert.throws(TypeError, function() { - subarray(); -}); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-method.js deleted file mode 100644 index 887e139bc3..0000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-method.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.subarray -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.26 %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) - - 1. Let O be the this value. - 2. If Type(O) is not Object, throw a TypeError exception. - 3. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.subarray, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.subarray(); -}); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/length.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/length.js deleted file mode 100644 index 818891a631..0000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.subarray -description: > - %TypedArray%.prototype.subarray.length is 2. -info: | - %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.subarray.length, 2); - -verifyNotEnumerable(TypedArray.prototype.subarray, "length"); -verifyNotWritable(TypedArray.prototype.subarray, "length"); -verifyConfigurable(TypedArray.prototype.subarray, "length"); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/name.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/name.js deleted file mode 100644 index 30c47e577e..0000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.subarray -description: > - %TypedArray%.prototype.subarray.name is "subarray". -info: | - %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.subarray.name, "subarray"); - -verifyNotEnumerable(TypedArray.prototype.subarray, "name"); -verifyNotWritable(TypedArray.prototype.subarray, "name"); -verifyConfigurable(TypedArray.prototype.subarray, "name"); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/prop-desc.js deleted file mode 100644 index 2189490258..0000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.subarray -description: > - "subarray" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'subarray'); -verifyWritable(TypedArrayPrototype, 'subarray'); -verifyConfigurable(TypedArrayPrototype, 'subarray'); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-object.js deleted file mode 100644 index 976731c66b..0000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-object.js +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.subarray -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) - - The following steps are taken: - - 1. Let O be the this value. - 2. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var subarray = TypedArray.prototype.subarray; - -assert.throws(TypeError, function() { - subarray.call(undefined, 0, 0); -}, "this is undefined"); - -assert.throws(TypeError, function() { - subarray.call(null, 0, 0); -}, "this is null"); - -assert.throws(TypeError, function() { - subarray.call(42, 0, 0); -}, "this is 42"); - -assert.throws(TypeError, function() { - subarray.call("1", 0, 0); -}, "this is a string"); - -assert.throws(TypeError, function() { - subarray.call(true, 0, 0); -}, "this is true"); - -assert.throws(TypeError, function() { - subarray.call(false, 0, 0); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - subarray.call(s, 0, 0); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 275f5e2bde..0000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.subarray -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.9 %TypedArray%.prototype.subarray( begin , end ) - - The following steps are taken: - - 1. Let O be the this value. - 2. If Type(O) is not Object, throw a TypeError exception. - 3. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var subarray = TypedArray.prototype.subarray; - -assert.throws(TypeError, function() { - subarray.call({}, 0, 0); -}, "this is an Object"); - -assert.throws(TypeError, function() { - subarray.call([], 0, 0); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - subarray.call(ab, 0, 0); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - subarray.call(dv, 0, 0); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-func.js deleted file mode 100644 index f8e43830de..0000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-func.js +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.tolocalestring -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.27 %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) - - ... - - This function is not generic. ValidateTypedArray is applied to the this - value prior to evaluating the algorithm. If its result is an abrupt - completion that exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var toLocaleString = TypedArray.prototype.toLocaleString; - -assert.sameValue(typeof toLocaleString, 'function'); - -assert.throws(TypeError, function() { - toLocaleString(); -}); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-method.js deleted file mode 100644 index 977734f74a..0000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-method.js +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.tolocalestring -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.27 %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) - - ... - - This function is not generic. ValidateTypedArray is applied to the this - value prior to evaluating the algorithm. If its result is an abrupt - completion that exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.toLocaleString, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.toLocaleString(); -}); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/length.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/length.js deleted file mode 100644 index 1bf9e889b3..0000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.tolocalestring -description: > - %TypedArray%.prototype.toLocaleString.length is 0. -info: | - %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.toLocaleString.length, 0); - -verifyNotEnumerable(TypedArray.prototype.toLocaleString, "length"); -verifyNotWritable(TypedArray.prototype.toLocaleString, "length"); -verifyConfigurable(TypedArray.prototype.toLocaleString, "length"); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/name.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/name.js deleted file mode 100644 index 87a238ad12..0000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.tolocalestring -description: > - %TypedArray%.prototype.toLocaleString.name is "toLocaleString". -info: | - %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.toLocaleString.name, "toLocaleString"); - -verifyNotEnumerable(TypedArray.prototype.toLocaleString, "name"); -verifyNotWritable(TypedArray.prototype.toLocaleString, "name"); -verifyConfigurable(TypedArray.prototype.toLocaleString, "name"); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/prop-desc.js deleted file mode 100644 index 81d0cd3743..0000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.tolocalestring -description: > - "toLocaleString" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'toLocaleString'); -verifyWritable(TypedArrayPrototype, 'toLocaleString'); -verifyConfigurable(TypedArrayPrototype, 'toLocaleString'); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-object.js deleted file mode 100644 index b67bf77c4e..0000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.tolocalestring -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.28 %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var toLocaleString = TypedArray.prototype.toLocaleString; - -assert.throws(TypeError, function() { - toLocaleString.call(undefined); -}, "this is undefined"); - -assert.throws(TypeError, function() { - toLocaleString.call(null); -}, "this is null"); - -assert.throws(TypeError, function() { - toLocaleString.call(42); -}, "this is 42"); - -assert.throws(TypeError, function() { - toLocaleString.call("1"); -}, "this is a string"); - -assert.throws(TypeError, function() { - toLocaleString.call(true); -}, "this is true"); - -assert.throws(TypeError, function() { - toLocaleString.call(false); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - toLocaleString.call(s); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index f98c9b5c0f..0000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.tolocalestring -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.28 %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var toLocaleString = TypedArray.prototype.toLocaleString; - -assert.throws(TypeError, function() { - toLocaleString.call({}); -}, "this is an Object"); - -assert.throws(TypeError, function() { - toLocaleString.call([]); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - toLocaleString.call(ab); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - toLocaleString.call(dv); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-func.js deleted file mode 100644 index 26607d78ab..0000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.values -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.29 %TypedArray%.prototype.values ( ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var values = TypedArray.prototype.values; - -assert.sameValue(typeof values, 'function'); - -assert.throws(TypeError, function() { - values(); -}); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-method.js deleted file mode 100644 index cec67a6def..0000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.values -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.29 %TypedArray%.prototype.values ( ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.values, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.values(); -}); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/length.js b/test/built-ins/TypedArray/prototype/values/BigInt/length.js deleted file mode 100644 index ce420f0ae5..0000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.values -description: > - %TypedArray%.prototype.values.length is 0. -info: | - %TypedArray%.prototype.values ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.values.length, 0); - -verifyNotEnumerable(TypedArray.prototype.values, "length"); -verifyNotWritable(TypedArray.prototype.values, "length"); -verifyConfigurable(TypedArray.prototype.values, "length"); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/name.js b/test/built-ins/TypedArray/prototype/values/BigInt/name.js deleted file mode 100644 index cc8ad3aed0..0000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.values -description: > - %TypedArray%.prototype.values.name is "values". -info: | - %TypedArray%.prototype.values ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.values.name, "values"); - -verifyNotEnumerable(TypedArray.prototype.values, "name"); -verifyNotWritable(TypedArray.prototype.values, "name"); -verifyConfigurable(TypedArray.prototype.values, "name"); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/values/BigInt/prop-desc.js deleted file mode 100644 index b805b7e8cd..0000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.values -description: > - "values" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through - 26 and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'values'); -verifyWritable(TypedArrayPrototype, 'values'); -verifyConfigurable(TypedArrayPrototype, 'values'); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-object.js deleted file mode 100644 index 57b57a78b7..0000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-object.js +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.values -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.30 %TypedArray%.prototype.values ( ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var values = TypedArray.prototype.values; - -assert.throws(TypeError, function() { - values.call(undefined); -}, "this is undefined"); - -assert.throws(TypeError, function() { - values.call(null); -}, "this is null"); - -assert.throws(TypeError, function() { - values.call(42); -}, "this is 42"); - -assert.throws(TypeError, function() { - values.call("1"); -}, "this is a string"); - -assert.throws(TypeError, function() { - values.call(true); -}, "this is true"); - -assert.throws(TypeError, function() { - values.call(false); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - values.call(s); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 68b78aeddd..0000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -esid: sec-%typedarray%.prototype.values -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.30 %TypedArray%.prototype.values ( ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var values = TypedArray.prototype.values; - -assert.throws(TypeError, function() { - values.call({}); -}, "this is an Object"); - -assert.throws(TypeError, function() { - values.call([]); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - values.call(ab); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - values.call(dv); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size-sab.js b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size-sab.js index 932cfb3c97..73de6c0602 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size-sab.js +++ b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size-sab.js @@ -23,11 +23,6 @@ features: [BigInt, SharedArrayBuffer, TypedArray] var buffer = new SharedArrayBuffer(1); testWithBigIntTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer); }); diff --git a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size.js b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size.js index f5f71f3d2a..171ea96a4c 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size.js +++ b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size.js @@ -22,11 +22,6 @@ features: [BigInt, TypedArray] var buffer = new ArrayBuffer(1); testWithBigIntTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer); }); diff --git a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size-sab.js b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size-sab.js index 7e9b40e66a..0782f270d1 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size-sab.js +++ b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size-sab.js @@ -22,11 +22,6 @@ features: [BigInt, SharedArrayBuffer, TypedArray] var buffer = new SharedArrayBuffer(8); testWithBigIntTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer, 7); }); diff --git a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size.js b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size.js index e511bc3945..9e4f26ee67 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size.js +++ b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size.js @@ -21,11 +21,6 @@ features: [BigInt, TypedArray] var buffer = new ArrayBuffer(8); testWithBigIntTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer, 7); }); diff --git a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-not-object-throws.js b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-not-object-throws.js index 435136a08a..44b76c2b95 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-not-object-throws.js +++ b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-not-object-throws.js @@ -27,11 +27,11 @@ includes: [testBigIntTypedArray.js] features: [BigInt, Symbol, TypedArray] ---*/ -var sample1 = new Int8Array(); -var sample2 = new Int16Array(); +var sample1 = new BigInt64Array(); +var sample2 = new BigUint64Array(); testWithBigIntTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : sample1; + var sample = TA === BigInt64Array ? sample2 : sample1; sample.buffer.constructor = 1; assert.throws(TypeError, function() { diff --git a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-access-throws.js b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-access-throws.js index 8b02063619..8b3933eedb 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-access-throws.js +++ b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-access-throws.js @@ -25,11 +25,11 @@ includes: [testBigIntTypedArray.js] features: [BigInt, Symbol.species, TypedArray] ---*/ -var sample1 = new Int8Array(); -var sample2 = new Int16Array(); +var sample1 = new BigInt64Array(); +var sample2 = new BigUint64Array(); testWithBigIntTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : sample1; + var sample = TA === BigInt64Array ? sample2 : sample1; var ctor = {}; sample.buffer.constructor = ctor; diff --git a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js index 338a63b20a..09a8068e9f 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js +++ b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js @@ -27,8 +27,8 @@ includes: [testBigIntTypedArray.js] features: [BigInt, Symbol.species, TypedArray] ---*/ -var sample1 = new Int8Array(); -var sample2 = new Int16Array(); +var sample1 = new BigInt64Array(); +var sample2 = new BigUint64Array(); var ctor = function() { throw new Test262Error(); @@ -37,7 +37,7 @@ var m = { m() {} }.m; ctor[Symbol.species] = m; testWithBigIntTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : sample1; + var sample = TA === BigInt64Array ? sample2 : sample1; sample.buffer.constructor = ctor; diff --git a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js index dea4919af1..705b8a7319 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js +++ b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js @@ -35,11 +35,11 @@ includes: [testBigIntTypedArray.js] features: [BigInt, Symbol.species, TypedArray] ---*/ -var sample1 = new Int8Array(); -var sample2 = new Int16Array(); +var sample1 = new BigInt64Array(); +var sample2 = new BigUint64Array(); testWithBigIntTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : sample1; + var sample = TA === BigInt64Array ? sample2 : sample1; var ctor = {}; var called = 0; diff --git a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js index 2c87901fd2..754abcd42d 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js +++ b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js @@ -14,15 +14,11 @@ includes: [testBigIntTypedArray.js] features: [BigInt, TypedArray] ---*/ -var sample1 = new Int8Array(7); -var sample2 = new Int16Array(7); -var sample3 = new BigInt64Array(7); -var sample4 = new BigUint64Array(7); +var sample1 = new BigInt64Array(); +var sample2 = new BigUint64Array(); testWithBigIntTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : - TA === BigInt64Array ? sample4 : - TA === BigUint64Array ? sample3 : sample1; + var sample = TA === BigInt64Array ? sample2 : sample1; var typedArray = new TA(sample); assert.sameValue(typedArray.length, 7); diff --git a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size-sab.js b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size-sab.js index 707aa00be3..b07837b84c 100644 --- a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size-sab.js +++ b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size-sab.js @@ -23,11 +23,6 @@ features: [SharedArrayBuffer, TypedArray] var buffer = new SharedArrayBuffer(1); testWithTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer); }); diff --git a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size.js b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size.js index a886e5afda..1c916b43cd 100644 --- a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size.js +++ b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size.js @@ -22,11 +22,6 @@ features: [TypedArray] var buffer = new ArrayBuffer(1); testWithTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer); }); diff --git a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size-sab.js b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size-sab.js index 79b398ccfb..645f259af9 100644 --- a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size-sab.js +++ b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size-sab.js @@ -22,11 +22,6 @@ features: [SharedArrayBuffer, TypedArray] var buffer = new SharedArrayBuffer(8); testWithTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer, 7); }); diff --git a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size.js b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size.js index 479f0d5dc1..f495e6bcc0 100644 --- a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size.js +++ b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size.js @@ -21,11 +21,6 @@ features: [TypedArray] var buffer = new ArrayBuffer(8); testWithTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer, 7); }); -- GitLab