Commit Graph

100 Commits

Author SHA1 Message Date
Rick Waldron aea4ae2059
Transform compareArray -> assert.compareArray: test/built-ins/Proxy/**/*.js (#3235) 2021-10-05 22:42:02 -04:00
Mike Pennisi 8f1fb5c257 Remove unused functions 2021-10-05 16:24:16 -04:00
Mike Pennisi d9ddf80479 Revert "Merge pull request #3219 from tc39/rwaldron/migrate-comparearray"
This reverts commit b690cb67be, reversing
changes made to 50dd431dff. This is
necessary because the reverted changeset reduced coverage by an unknown
extent.
2021-10-01 10:18:47 -04:00
rwaldron 4847d9db5a chore: update test/**/*.js to use assert.compareArray wherever applicable 2021-09-24 12:58:15 -04:00
Mike Pennisi e9fc3db379 Add test for normative change to TCO&revoked Proxy
Normative: phrase tail calls as discarding resources rather than popping
execution context stack
https://github.com/tc39/ecma262/pull/2495
2021-09-07 17:50:48 -04:00
ExE Boss 8f904d8cc8 Set function `length` and `name` in `CreateBuiltinFunction` 2021-01-29 09:45:20 -05:00
Gus Caplan 6aa8338d23 add feature tags 2020-10-08 18:05:00 -04:00
Gus Caplan 881c9e3ba5 move __proto__ tests 2020-10-08 18:05:00 -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 12ed905003 Clean up some existing constructor checks; eliminate duplicate checks 2020-10-06 12:01:34 -04:00
Alexey Shvayka df0207cbeb Test revoked [[ProxyHandler]] 2020-04-23 10:45:26 -04:00
Alexey Shvayka d6834acbf1 Test revoked callable [[ProxyTarget]] 2020-04-23 10:45:26 -04:00
Alexey Shvayka 449f3ed0b9 Test revoked [[ProxyTarget]] 2020-04-23 10:45:26 -04:00
Alexey Shvayka a24078194c Use isConstructor harness in revocation function test 2020-04-23 10:42:59 -04:00
Alexey Shvayka c31133b195 Add Proxy.revocable built-in test 2020-04-23 10:42:59 -04:00
Alexey Shvayka 1394a4f33e Fix Proxy tests 2020-04-23 10:31:12 -04:00
Gus Caplan a799a4ac23 Sort out __proto__ occurances outside of annexB 2020-04-18 17:04:51 -04:00
Alexey Shvayka 4199a3b34b Add integer index property name test 2020-04-01 11:41:38 -04:00
Alexey Shvayka b69390e68a Add string property name test 2020-04-01 11:41:38 -04:00
Alexey Shvayka 00cf7a1a9c Rename "trap-is-undefined-receiver.js" 2020-04-01 11:41:38 -04:00
Alexey Shvayka 9ccd3a7b9e Test revoked callable [[ProxyTarget]] 2020-03-30 09:48:37 -04:00
Alexey Shvayka 91b867b660 Fix non-callable [[ProxyTarget]] test 2020-03-30 09:48:37 -04:00
Alexey Shvayka e8e3aaa77b Test revoked [[ProxyHandler]] 2020-03-30 09:48:37 -04:00
Alexey Shvayka 8b610fb33a Test revoked [[ProxyTarget]] 2020-03-30 09:48:37 -04:00
Rick Waldron 344612b592
Fix: Proxy set, if trap is undefined (#2536) 2020-03-23 15:46:33 -07:00
Alexey Shvayka f72db7e12b Add [[Call]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka 5c3ea18763 Add [[Construct]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka aa53649ef1 Add [[HasProperty]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka 6155fcad3d Add [[Get]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka 2d60dc0f65 Add [[Set]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka 983b1aceb5 Add [[OwnPropertyKeys]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka cc6d48d874 Add [[PreventExtensions]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka 3987d3c20f Add [[IsExtensible]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka d32db7a45e Add [[SetPrototypeOf]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka 20c2ce30f3 Add [[GetPrototypeOf]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka b9377e7b6d Add [[GetOwnProperty]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka d46e72d95e Add [[Delete]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka 6b9929a31d Add [[DefineOwnProperty]] tests 2020-03-23 14:10:11 -04:00
Alexey Shvayka da9612db98 Add some more Proxy/ownKeys invariants tests (#2413)
* Defer making [[ProxyTarget]] non-extensible

* Fix typo in method name

* Add last Object.keys with Proxy invariant test

* Add Object.getOwnPropertySymbols with Proxy invariants tests

* Add Object.getOwnPropertyNames with Proxy invariants tests

* Replace "es6id" with "esid" in Object.getOwnPropertySymbols tests
2019-11-11 15:02:07 -05:00
Alexey Shvayka 600245fcd3 Add integer index tests for Proxy "set" and "has" traps (#2412)
* Make Proxy [[HasProperty]] in prototype test more robust

* Add integer index Proxy [[HasProperty]] in prototype test

* Add integer index Proxy [[Set]] in prototype test
2019-11-11 15:01:39 -05:00
Alexey Shvayka bb6ce7e435 Add test for Proxy "has" trap on prototype (#2382)
* Use allowProxyTraps.js in [[Set]] tests

* Add [[HasProperty]] test
2019-10-08 14:58:27 -04:00
Alexey Shvayka 256f5f4b46 Improve Proxy/set call parameters coverage (#2347)
* Tweak front matter of basic test

* Simplify basic test

* Add test for proxy as prototype

* Add test for proxy as prototype and __proto__
2019-09-18 13:30:28 -03:00
Leo Balter 5d84854f27
Avoid usage of Object.keys when asserting order of returned values (#2320)
Fixes #2226
2019-09-04 11:38:18 -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
Leo Balter ff9763729d Remove duplicated es[56]id if esid is present 2019-08-05 10:54:37 -04:00
Alexey Shvayka 8984ea8080 Add "proxy-missing-checks" feature tag (#2195) 2019-06-12 15:00:18 -04:00
Aleksey Shvayka 1265a60017 Improve Proxy/construct coverage (#2159) 2019-05-29 15:49:41 -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 8c1819484e Improve Proxy/apply coverage (#2156) 2019-05-10 15:57:40 -04:00
Aleksey Shvayka 4d33170d0e Add tests for Proxy semantics change (#2143)
* Add not extensible target test for `deleteProperty`

* Add non-writable descriptor test for `defineProperty`

* Add non-writable descriptor test for `getOwnPropertyDescriptor`
2019-05-03 10:21:48 -04:00