test262/test/built-ins/Object/assign
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
..
ObjectOverride-sameproperty.js
OnlyOneArgument.js
Override-notstringtarget.js
Override.js
Source-Null-Undefined.js Transform legacy format to harness assertions: test/built-ins/O*/**/*.js 2021-09-02 11:34:27 -07:00
Source-Number-Boolen-Symbol.js Transform legacy format to harness assertions: test/built-ins/O*/**/*.js 2021-09-02 11:34:27 -07:00
Source-String.js Transform legacy format to harness assertions: test/built-ins/O*/**/*.js 2021-09-02 11:34:27 -07:00
Target-Boolean.js
Target-Null.js
Target-Number.js
Target-Object.js
Target-String.js
Target-Symbol.js
Target-Undefined.js
assign-descriptor.js tools: enforce restriction on YAML includes key 2022-01-05 17:27:58 -05:00
assign-length.js
assignment-to-readonly-property-of-target-must-throw-a-typeerror-exception.js
invoked-as-ctor.js
name.js
not-a-constructor.js Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests. 2020-10-06 12:01:34 -04:00
source-get-attr-error.js
source-non-enum.js Replace Object.hasOwnProperty.call with Object.prototype.hasOwnProperty.call 2022-11-30 16:04:02 -08:00
source-own-prop-desc-missing.js Replace Object.hasOwnProperty.call with Object.prototype.hasOwnProperty.call 2022-11-30 16:04:02 -08:00
source-own-prop-error.js
source-own-prop-keys-error.js
strings-and-symbol-order-proxy.js
strings-and-symbol-order.js
target-is-frozen-accessor-property-set-succeeds.js Add Object.freeze tests 2021-02-08 15:40:48 -05:00
target-is-frozen-data-property-set-throws.js Add Object.freeze tests 2021-02-08 15:40:48 -05:00
target-is-non-extensible-existing-accessor-property.js Add Object.preventExtensions tests 2021-02-08 15:40:48 -05:00
target-is-non-extensible-existing-data-property.js Add Object.preventExtensions tests 2021-02-08 15:40:48 -05:00
target-is-non-extensible-property-creation-throws.js Add Object.preventExtensions tests 2021-02-08 15:40:48 -05:00
target-is-sealed-existing-accessor-property.js Add Object.seal tests 2021-02-08 15:40:48 -05:00
target-is-sealed-existing-data-property.js Add Object.seal tests 2021-02-08 15:40:48 -05:00
target-is-sealed-property-creation-throws.js Add Object.seal tests 2021-02-08 15:40:48 -05:00
target-set-not-writable.js
target-set-user-error.js