test262/implementation-contributed/v8
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
..
intl [v8-test262-automation] Updated curation log with latest revision sha's from export and changed files. 2019-02-04 19:41:17 +00:00
mjsunit Replace Object.hasOwnProperty.call with Object.prototype.hasOwnProperty.call 2022-11-30 16:04:02 -08:00
test262 chore: migrate $ERROR -> throw new Test262Error in test/intl402 (#3094) 2021-07-21 13:36:32 -07:00
wasm-js [v8-test262-automation] Updated curation log with latest revision sha's from export and changed files. 2019-02-04 19:41:17 +00:00