1288 Commits

Author SHA1 Message Date
Leo Balter
71e40aad50
Fix circular tests for JSON.stringify (#2315)
Ref #2168
2019-08-28 17:37:19 -03:00
Alexey Shvayka
d0b5137c15 Improve JSON.stringify coverage (#2168)
* Rename & improve "length" test

* Use verifyProperty in "name" test

* Rename & improve property descriptor test

* Remove duplicated test

https://github.com/tc39/test262/blob/master/test/built-ins/Object/prototype/toString/proxy-array.js

* Rename proxy value test

* Rename & improve String object unwrapping test

* Rename & improve Number object unwrapping test

* Rename & improve Boolean object unwrapping test

* Rename & merge replacer returns undefined tests

* Rename & merge replacer function tests

* Rename replacer array revoked proxy test

* Add cross-realm replacer array revoked proxy test

* Add array proxy replacer test

* Add replacer array keys order test

* Add empty replacer array test

* Add non-finite numbers serialization test

* Add replacer array abrupt completion test

* Add replacer array with duplicates test

* Add replacer array ignores undefined test

* Add replacer array unwraps strings test

* Add replacer array unwraps numbers test

* Rename & merge circular object tests

* Add circular array test

* Rename & merge top-level primitives tests

* Rename string escape tests

* Rename BigInt tests

* Rename & improve function value test

* Add replacer function abrupt test

* Rename & merge wrong space type tests

* Rename float number space test

* Rename & improve Number object space test

* Rename & improve String object space test

* Rename basic numeric space test

* Rename string space slice test

* Add replacer array numbers test

* Add toJSON abrupt completions test

* Add not callable toJSON test

* Add toJSON call arguments test

* Add replacer array wrong types test

* Rename & improve string space test

* Rename & improve replacer wrong type test

* Add built-in object requirements test

* Add basic toJSON result test

* Add abrupt array value test

* Add abrupt object value test

* Rename & merge space number clamp tests

* Add replacer function wrapper test

* Add symbol value test

* Add negative zero value test

* Add replacer function & toJSON test

* Add circular object from toJSON test

* Add circular array from toJSON test

* Add circular object from replacer test

* Add circular array from replacer test

* Add replacer function arguments test

* Split & improve proxy value test

* Split & improve revoked proxy value test
2019-08-28 17:34:59 -03:00
Leo Balter
1c2bd105fb
Remove shared-nonint-views.js files (#2314)
Ref #2103
2019-08-28 16:23:07 -03:00
André Bargull
e48bf299a6 Ensure Atomics functions validate the TypedArray type before coercing the other arguments (#2103) 2019-08-28 16:19:22 -03:00
Caio Lima
fbbab61b4a Adding cases to check if SyntaxError is thrown if AllPrivateIdentifiersValid returns false. (#2301) 2019-08-28 14:58:43 -03:00
Alexey Shvayka
8042c57d9b Add Promise#finally invoked on thenable test (#2312)
* Rename proxy context test

* Add thenable context test
2019-08-28 12:42:24 -03:00
André Bargull
59a1a016b7 Assign "name" property to all anonymous functions (#2299)
Implements the changes from <https://github.com/tc39/ecma262/pull/1490>.
2019-08-15 10:58:40 -04:00
Kubilay Kahveci
9b29709797 Add tests for .toString() of private methods (#2268) 2019-08-05 16:47:19 -04:00
Leo Balter
ff9763729d Remove duplicated es[56]id if esid is present 2019-08-05 10:54:37 -04:00
Gus Caplan
2fb39cb4e9 add missing feature (#2250) 2019-07-22 12:46:59 -04:00
André Bargull
d8c20b423b Call $DONE function exactly once per test
Also make a note in CONTRIBUTING.md that `$DONE` shouldn't be called multiple times.
2019-07-22 02:12:24 -07:00
Caio Lima
1dc78879d4 Add edge tests to verify BigInt to Number conversion when BigInt can't directly be represented by a Number. 2019-07-19 13:53:01 -04:00
Leo Balter
d02fe7db38
Add coverage for non object values of the Properties arg of Object.create (#2238)
Fixes #2237
2019-07-15 16:17:03 -04:00
Leo Balter
6cb0a531af Fix typos 2019-07-11 11:17:30 -04:00
Leo Balter
b45bf4b6fa fixup! Some edgy cases for weakrefs/finalizationgroups 2019-07-11 11:17:30 -04:00
Leo Balter
3c293f0e6c Some edgy cases for weakrefs/finalizationgroups 2019-07-11 11:17:30 -04:00
Alexey Shvayka
19b5a5a635 Improve Object#toString coverage (#2202)
* Move proxies with non-string toStringTag to separate file

* Add coverage for async proxy functions

* Add coverage for built-ins with non-string toStringTag

* Move async proxy function tests to new file
2019-07-10 14:00:04 -04:00
Leo Balter
1ef21eb50b fixup! Cleanup some tests for FinalizationGroup 2019-07-02 10:04:04 -04:00
Leo Balter
6242304cd0 Cleanup some tests for FinalizationGroup 2019-07-02 10:04:04 -04:00
Timothy Gu
9dfb9e14e0 Fix WeakMap/WeakSet typo
The test tries to test against WeakSet, but used WeakMap instead.
2019-07-02 09:37:46 -04:00
Alexey Shvayka
d7c95efe66 Improve "name" tests of Promise built-in functions (#2179) 2019-06-26 15:03:14 -04:00
Leo Balter
7c7d3f756c Fix tests for FinalizationGroup 2019-06-26 13:49:08 -04:00
Leo Balter
f7f07a9010 Add a test for FinalizationGroupCleanupIteratorPrototype 2019-06-21 20:00:35 -04:00
Gus Caplan
61ccff550e Fix invoke-resolve-get-error-close tests (#2210) 2019-06-21 14:26:57 -04:00
Gus Caplan
7a1da555a5 add WeakRef feature to WeakRef/constructor test. (#2209) 2019-06-21 13:41:28 -04:00
Leo Balter
f7591eb01b fixup 2019-06-21 11:50:22 -04:00
Leo Balter
73f80aea4d Apply review feedback 2019-06-21 11:50:22 -04:00
Leo Balter
ca11ac4a43 Add tests for cleanupSome 2019-06-21 11:50:22 -04:00
Leo Balter
dcac20d8ed Add tests for FG register/unregister 2019-06-21 11:50:22 -04:00
Leo Balter
ab38ce4e84 Add more tests, include deref 2019-06-21 11:50:22 -04:00
Leo Balter
c2c81409b2 fixup! Normative optional WeakRef#constructor 2019-06-21 11:50:22 -04:00
Leo Balter
5fabef83dc Normative optional WeakRef#constructor 2019-06-21 11:50:22 -04:00
Leo Balter
16e9389b01 fix typo 2019-06-21 11:50:22 -04:00
Leo Balter
62477ea0c9 More tests 2019-06-21 11:50:22 -04:00
Leo Balter
e3d87d6690 No ctor for WeakRef.prototype 2019-06-21 11:50:22 -04:00
Leo Balter
969d4e68b4 Basic tests for weakref and finalizationgroup 2019-06-21 11:50:22 -04:00
Alexey Shvayka
df1a1c75b7 Remove trailing spaces from YAML blocks (#2201) 2019-06-19 16:39:21 -04:00
Gus Caplan
ceaebf7058 fix built-ins/Object/subclass-object-arg (#2200) 2019-06-19 15:48:53 -04:00
Alexey Shvayka
395401cba0 Slightly improve JSON.parse coverage (#2196) 2019-06-12 15:29:04 -04:00
Alexey Shvayka
8984ea8080 Add "proxy-missing-checks" feature tag (#2195) 2019-06-12 15:00:18 -04:00
Alexey Shvayka
74e0cae407 Add Date.prototype.toJSON coverage (#2190) 2019-06-12 14:59:54 -04:00
Alexey Shvayka
430ee14d90 Add Object subclass test (#2177) 2019-06-12 14:11:16 -04:00
Aleksey Shvayka
1265a60017 Improve Proxy/construct coverage (#2159) 2019-05-29 15:49:41 -04:00
Aleksey Shvayka
2ce56a5f64 Verify that symbols are not callable (#2180) 2019-05-27 10:34:05 -04:00
Aleksey Shvayka
6f4c0d96f7 Improve GetFunctionRealm coverage (#2155)
* Fix Function.prototype.bind test

* Simplify Proxy test

* Info tweaks

* Add Function.prototype.bind recursive test

* Add Proxy recursive test
2019-05-22 18:11:49 -04:00
Aleksey Shvayka
e4fed70c9b Fix description of Promise constructor test (#2174) 2019-05-22 17:57:45 -04:00
Aleksey Shvayka
4838fc3167 Improve String#toString and String#valueOf coverage (#2160)
* toString: rename "length" test

* toString: use verifyProperty in "name" test

* toString: rename & merge non-generic tests

* toString: add cross-realm non-generic test

* toString: rename happy path tests

* valueOf: use verifyProperty in "length" test

* valueOf: use verifyProperty in "name" test

* valueOf: rename & merge non-generic tests

* valueOf: add cross-realm non-generic test

* valueOf: rename happy path tests

* toString: add indirect invocation tests

* valueOf: add indirect invocation tests
2019-05-22 17:47:15 -04:00
Aleksey Shvayka
ee960aefb5 Improve Promise constructor coverage (#2158)
* Add constructor descriptor test

* Rename & improve non-callable executor test

* Rename & simplify executor call context tests

* Remove duplicate reject via abrupt test

* Deduplicate undefined NewTarget tests

* Add basic constructor test

* Add abrupt prototype getting tests
2019-05-22 17:33:09 -04:00
Mathias Bynens
a9abd418cc Update RegExp property escape tests per Unicode v12.1.0 (#2161)
Ref. https://github.com/tc39/ecma262/issues/1530.
2019-05-22 17:08:14 -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