test262/test/built-ins/Proxy
Philip Chimento d87a7da6e1 Replace Object.hasOwnProperty.call with Object.prototype.hasOwnProperty.call
While we're at it, use assert() instead of assert.sameValue() for brevity,
if we are not specifically testing that the return value of hasOwnProperty
is the value true or false; and add more informative assertion messages to
help with debugging.

In some cases, the Object.hasOwnProperty.call could be replaced with
verifyProperty(), if the property descriptor was also being verified at
the same time.

This fixes some tests that were faulty to begin with: a common mistake was
Object.hasOwnProperty(obj, prop) which is probably going to return false
when that's not what you want.

The only instances left of `Object.hasOwnProperty` are one regression test
in implementation-contributed which I can't tell if it was intentionally
needed to trigger the regression, and a few instances of
`Object.hasOwnProperty('prototype')` which would defeat the purpose to
convert into `Object.prototype.hasOwnProperty.call(Object, 'prototype')`
form.

Closes: #3524
2022-11-30 16:04:02 -08:00
..
apply Add [[Call]] tests 2020-03-23 14:10:11 -04:00
construct Remove unused functions 2021-10-05 16:24:16 -04:00
defineProperty Add [[DefineOwnProperty]] tests 2020-03-23 14:10:11 -04:00
deleteProperty Replace Object.hasOwnProperty.call with Object.prototype.hasOwnProperty.call 2022-11-30 16:04:02 -08:00
enumerate Transform compareArray -> assert.compareArray: test/built-ins/Proxy/**/*.js (#3235) 2021-10-05 22:42:02 -04:00
get Sort out __proto__ occurances outside of annexB 2020-04-18 17:04:51 -04:00
getOwnPropertyDescriptor Add [[GetOwnProperty]] tests 2020-03-23 14:10:11 -04:00
getPrototypeOf Add [[GetPrototypeOf]] tests 2020-03-23 14:10:11 -04:00
has Sort out __proto__ occurances outside of annexB 2020-04-18 17:04:51 -04:00
isExtensible Add [[IsExtensible]] tests 2020-03-23 14:10:11 -04:00
ownKeys Add [[OwnPropertyKeys]] tests 2020-03-23 14:10:11 -04:00
preventExtensions Add [[PreventExtensions]] tests 2020-03-23 14:10:11 -04:00
revocable Add test for normative change to TCO&revoked Proxy 2021-09-07 17:50:48 -04:00
set add feature tags 2020-10-08 18:05:00 -04:00
setPrototypeOf Add [[SetPrototypeOf]] tests 2020-03-23 14:10:11 -04:00
constructor.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
create-handler-is-revoked-proxy.js Test revoked [[ProxyHandler]] 2020-03-30 09:48:37 -04:00
create-handler-not-object-throw-boolean.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
create-handler-not-object-throw-null.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
create-handler-not-object-throw-number.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
create-handler-not-object-throw-string.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
create-handler-not-object-throw-symbol.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
create-handler-not-object-throw-undefined.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
create-target-is-not-a-constructor.js Clean up some existing constructor checks; eliminate duplicate checks 2020-10-06 12:01:34 -04:00
create-target-is-not-callable.js Fix non-callable [[ProxyTarget]] test 2020-03-30 09:48:37 -04:00
create-target-is-revoked-function-proxy.js Test revoked callable [[ProxyTarget]] 2020-03-30 09:48:37 -04:00
create-target-is-revoked-proxy.js Test revoked [[ProxyTarget]] 2020-03-30 09:48:37 -04:00
create-target-not-object-throw-boolean.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
create-target-not-object-throw-null.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
create-target-not-object-throw-number.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
create-target-not-object-throw-string.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
create-target-not-object-throw-symbol.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
create-target-not-object-throw-undefined.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
function-prototype.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
get-fn-realm-recursive.js Fix Proxy tests 2020-04-23 10:31:12 -04:00
get-fn-realm.js Fix Proxy tests 2020-04-23 10:31:12 -04:00
length.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
name.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
property-order.js Set function `length` and `name` in `CreateBuiltinFunction` 2021-01-29 09:45:20 -05:00
proxy-newtarget.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
proxy-no-prototype.js Replace Object.hasOwnProperty.call with Object.prototype.hasOwnProperty.call 2022-11-30 16:04:02 -08:00
proxy-undefined-newtarget.js Features: Proxy, Reflect (See pull/1643) (#1646) 2018-07-20 18:42:39 -04:00
proxy.js