126 Commits

Author SHA1 Message Date
Rick Waldron
9c069a6810 sec-%typedarray%.prototype.slice 2020-10-09 13:46:50 -04:00
Rick Waldron
36c2cd165f WIP: Align detached buffer semantics with web reality
To support https://github.com/tc39/ecma262/pull/2164
2020-10-09 13:46:50 -04:00
Rick Waldron
20e3101105 Lint fixes 2020-10-06 12:01:34 -04:00
Rick Waldron
d576baf73f Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests. 2020-10-06 12:01:34 -04:00
Rick Waldron
c644ede430 Built-in function objects that are not identified as constructors must throw a TypeError exception when new'ed. Fixes gh-1739 2020-10-06 12:01:34 -04:00
Rick Waldron
fd65b84378 Coverage: %TypedArray%.prototype.sort( comparefn = undefined ). Fixes gh-2843 2020-10-05 11:05:57 -04:00
Rick Waldron
e3b12065b2 Coverage: Array.prototype.item, String.prototype.item, TypedArray.prototype.item. Closes gh-2809, gh-2810, gh-2811 2020-09-24 17:23:38 -04:00
Alexey Shvayka
2dcdba94e5 Simplify tests 2020-06-17 12:42:37 -04:00
Alexey Shvayka
23417d9569 Test %TypedArray%.prototype.set with primitives 2020-06-17 12:42:37 -04:00
Alexey Shvayka
adf2cf4204 Add %TypedArray%.prototype.lastIndexOf tests 2020-06-10 15:59:14 -04:00
Alexey Shvayka
063cdb5731 Add %TypedArray%.prototype.indexOf tests 2020-06-10 15:59:14 -04:00
Ross Kirsling
723205bd54 Fix invalid YAML from #2470 and #2474. 2020-02-20 12:12:03 -05:00
Natalie Silvanovich
5c9b5ed610 Updating description for search element test 2020-02-06 12:43:52 -05:00
Natalie Silvanovich
07e708d900 TypedArray includes tests 2020-02-06 12:43:52 -05:00
Natalie Silvanovich
7ad85e90a9 Security test for TypedArray.prototype.sort based on CVE-2016-7288 2020-02-06 11:10:17 -05:00
Natalie Silvanovich
a12677ec4c Adding security tests for TypedArray.prototype.fill based on CVE-2016-4734 2020-02-05 15:04:06 -05:00
Natalie Silvanovich
c2e157240d Test that Typed Array internal slots are not inherited by TypedArray.prototype.buffer 2020-02-05 14:31:10 -05:00
Leo Balter
6e4d442cc6
Fix syntax typos + whitespace (#2466)
Ref #2444
2020-01-08 13:57:49 -05:00
Natalie Silvanovich
65afdfbff6 Additional tests for TypedArray copyWithin (#2444) 2020-01-08 13:26:40 -05:00
Gus Caplan
a53f43e1ce
add missing newlines in tests 2019-11-10 20:18:56 -08:00
Mike Pennisi
f26c2a11bd Remove unnecessary "includes" directives
The values defined by the referenced files are not used by these tests.
This makes their inclusion superfluous, which needlessly increases the
time to execute the tests and may confuse some readers.
2019-09-25 13:59:24 -04:00
Gus Caplan
841b32c6da fix TypedArray.prototype.sort test (#2326)
* fix TypedArray.prototype.sort test

* Update sorted-values.js

* Update sorted-values.js
2019-09-04 11:36:51 -03:00
Leo Balter
ff9763729d Remove duplicated es[56]id if esid is present 2019-08-05 10:54:37 -04:00
Mathias Bynens
1c30aef38d Move TypedArray#sort stability test to correct directory (#2169)
Follow-up to #2062.
2019-05-20 11:35:59 -04:00
Mathias Bynens
9280e1f872 Add tests for %TypedArray%.prototype.sort stability (#2062)
https://github.com/tc39/ecma262/pull/1433
2019-02-04 11:58:05 -07:00
Peter Wong
08d827565b Increase coverage for %TypedArray%.prototype.map with species constructor (#2019) 2019-01-07 12:34:35 -02:00
Leo Balter
7375dcb080 Remove duplicates 2018-12-21 10:50:23 -05:00
Ashley Hauck
835c85c26e TypedArray.prototype.sort: check result of compareFn is immediately converted ToNumber (#1694) 2018-08-27 14:27:27 -04:00
André Bargull
ea6c18c5e2 Don't compute NaN values in functions (#1503)
`function nan() { return /* expression to compute NaN */ }` may not return the same implementation-distinguishable NaN value before and after JIT compilation.
2018-03-22 20:20:29 -04:00
André Bargull
500e48e6ce Fix various test bugs (#1502)
Fixes #1492
2018-03-22 16:36:57 -04:00
Valerie R Young
cc86629301 BigInt: fix, make sure to correctly use different typedarray ctor 2018-03-13 15:23:39 -04:00
Valerie R Young
a9827c945d BigInt: fix TypedArray fncs expecting BigInt for cmp 2018-03-13 13:47:29 -04:00
Valerie R Young
fcb5207932 BigInt: fix test sortcompare does not call toString 2018-03-13 13:26:50 -04:00
Rick Waldron
2975694f86 Weaken tests about NaN canonicalization.
Fixes gh-1476
Closes gh-1484
2018-03-13 12:53:39 -04:00
Valerie
496771cd64 BigInt: fix error type in BigInt from string conversion (#1487) 2018-03-12 15:22:29 -04:00
Valerie
b1bbf08bdc BigInt: some fixes listed in #1461 (#1485)
test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-conversion-once.js
- Should refer to BigInt conversion instead of ToNumber

test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-non-numeric.js
- Missing coverage for non-convertable values like undefined or null?
- added fill-values-non-numeric-throw.js

test/built-ins/TypedArray/prototype/set/BigInt/array-arg-return-abrupt-tointeger-offset-symbol.js
- Change [1] to [1n] to avoid possible false-positives because ToBigInt(1) also throws a TypeError.
- Issue also present in other set() tests.
2018-03-12 14:23:58 -04:00
Valerie
985c439c94 BigInt: Add tests for BigInt conversions in TypedArray prototype/set and TypedArray internal [[set]] (#1478)
* BigInt: Add tests for BigInt conversions in prototype/set

* BigInt: add conversion tests for internal [[set]]
2018-03-12 14:21:27 -04:00
Leo Balter
ccab9a18b0
Fix length prop tests for the TypedArrays ctors family (#1479) 2018-03-08 09:21:09 -05:00
Leo Balter
7add5252e5 Remove unused parameter for testWithBigIntTypedArrayConstructors
+whitespace
2018-02-28 11:06:31 -05:00
Adrian Heine né Lang
a01e2a3f03 Remove unused BigInt syntax in TA test (#1455) 2018-02-27 17:45:53 -05:00
Rick Waldron
4efdb83ae9 Updates a portion of the BigInt tests that need work. Ref gh-1461 (#1462) 2018-02-27 17:45:25 -05:00
Leo Balter
2712807027
Fix errors recently introduced. (#1448)
* Fix bad references on tests for BigInt TypedArrays

* Remove bad conversions for BigInt TypedArray

* Cleanup the BigInt TypedArray harness file

Remove non used code (testBigIntTypedArrayConversions)

Move the constructors list to inside the exposed function, this prevents early implementations to fail before the function is called.

* Fix bad references in TypedArrays.of (BigInt)

* Remove BigInt tests from typedarray harness test

* Use BigInt for BigInt typedArrays

* Apply last fixings on BigInt TypedArray tests

* Apply fixes to last revision from @anba
2018-02-27 14:58:56 -05:00
Leo Balter
857f1d429b fix bad fixings from Remove N 2018-02-15 17:51:52 -05:00
Leo Balter
77096157d1 fix syntax typo 2018-02-15 16:45:10 -05:00
Leo Balter
c6cd535940 Last cases of convertToBigInt 2018-02-15 16:45:10 -05:00
Leo Balter
3325e2a516 Minimize use of convertToBigInt 2018-02-15 16:45:10 -05:00
Leo Balter
dd2dfc9fb1 remove bogus checks 2018-02-15 16:45:09 -05:00
Leo Balter
098c69540e Remove N() 2018-02-15 16:45:08 -05:00
Leo Balter
b6664ca24a Add missing feature flag for TypedArrays 2018-02-15 16:45:08 -05:00
Leo Balter
d30bf82d47 Add missing feature flags 2018-02-15 16:45:07 -05:00