104 Commits

Author SHA1 Message Date
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
Leo Balter
08c1f36828 Use esid tags on TypedArray/prototype/* 2018-02-15 16:45:07 -05:00
Leo Balter
c1bc43b1b1 Restore original tests for TypedArrays and optimize files
- optimize file names
- BigInt folder for TAs.from and of
- copy tests preparing for bigint
- copy ta prototype methods for bigint
- Use an exclusive harness for bigint typedarrays
- add features
- use proper harness
- use preper harness
- Restore original tests for TypedArrays
- final fixes
- fix includes
2018-02-15 16:45:06 -05:00
Robin Templeton
9232d65b30 BigInt TypedArray tests
- add @jakobkummerow's changes
- remove EOL whitespace
- use 'Array.isArray' instead of 'instanceof Array'
- check for BigInt type in toLocaleString tests
- specify TypedArray constructor list for non-BigInt tests
- update TypedArray harness test for BigInt
- add a missing type coercion
- disable more tests for Big(U)Int64Array
- check for BigInt before using BigInt TypedArray constructors
2018-02-15 16:45:05 -05:00
André Bargull
f95b56ab28 Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
2018-02-09 12:09:47 -05:00
Rick Waldron
a01de4a722 js-beautify: make all indentation consistent (depth & character) (#1409) 2018-02-09 11:35:37 -05:00
Rick Waldron
89ac510488 Frontmatter: fixup "description: |" to "description: >" 2018-01-05 12:29:17 -05:00
Rick Waldron
92a2621901 Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
Rick Waldron
e3447b8200 features: update all features flags for all test files with harness/* deps that require a feature flag 2017-09-08 12:34:19 -04:00
Leo Balter
ca1871bafd Add missing Symbol.toStringTag feature flags 2017-09-08 10:13:50 -04:00
Jordan Harband
f1c1b33b53 Array.prototype.sort and %TypedArray%.prototype.sort should throw on a non-undefined non-function (#1059)
Per https://github.com/tc39/ecma262/pull/785/
2017-06-12 19:21:33 -03:00
André Bargull
d59e30c95e Remove execute bit from files (#976) 2017-04-13 16:24:07 -04:00
Choongwoo Han
ab9738c471 Tests for using internal byteOffset in TypedArray.prototype.set (#944) 2017-04-06 12:04:09 -04:00
littledan
32e129676e Test for TypedArray.prototype.fill semantics change (#927)
The change is proposed in https://github.com/tc39/ecma262/pull/856
as a fix to https://github.com/tc39/ecma262/issues/855

Here, the ToNumber coercion is done only once, rather than on each
iteration. It does not appear that there were previously any
tests against repeated coercion for this parameter previously.

Tested this test against V8, which failed, as V8 implements the
current spec rather than the proposed one.
2017-03-27 13:50:38 -04:00
André Bargull
878d382eb9 Fix typos in built-ins/TypedArray/prototype/copyWithin 2017-02-22 18:11:25 +01:00
André Bargull
bb369e1e7c Fix typo in TypedArray test with SharedArrayBuffers 2017-02-22 18:04:51 +01:00
⭐caitp⭐
be0964c8ff Add tests for %TypedArray%.prototype.copyWithin() with target/start/end=Infinity (#849)
ToInteger can result in the values +Infinity and -Infinity.
2017-02-13 13:51:45 -08:00
Shu-yu Guo
a72ee6d912 SharedArrayBuffer and Atomics tests (#839) 2017-02-07 11:17:31 -05:00
Leonardo Balter
6fcbfaf0f0 Assert TypedArray iterators inherit from ArrayPrototypeIterator 2016-07-05 16:29:22 -04:00
Leonardo Balter
6497c1f5cc Merge tests for TypedArrays#length when this is not object 2016-07-05 16:29:20 -04:00
Leonardo Balter
d190e700f3 Add bit-precision tests for TypedArray#copyWithin 2016-07-05 16:20:16 -04:00
Leo Balter
e49d2661a8 Improve assertions comparing values to NaN (#690)
The global isNaN is not precise at all, and Number.isNaN is an ES6 feature that makes it preferrable to use assert's sameValue for NaN values, as it handles it internally using the comparison.
2016-07-01 11:22:55 -07:00
Leonardo Balter
f912927b1f [TypedArrays] Apply code consistency fixes after checks with JSHint 2016-05-27 15:59:14 -04:00