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 Fix yaml consistency 2018-03-06 14:36:02 -05:00
OnlyOneArgument.js Fix yaml consistency 2018-03-06 14:36:02 -05:00
Override-notstringtarget.js Avoid usage of Object.keys when asserting order of returned values (#2320) 2019-09-04 11:38:18 -03:00
Override.js Avoid usage of Object.keys when asserting order of returned values (#2320) 2019-09-04 11:38:18 -03:00
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 Fix yaml consistency 2018-03-06 14:36:02 -05:00
Target-Null.js Fix yaml consistency 2018-03-06 14:36:02 -05:00
Target-Number.js Fix yaml consistency 2018-03-06 14:36:02 -05:00
Target-Object.js Fix yaml consistency 2018-03-06 14:36:02 -05:00
Target-String.js Fix yaml consistency 2018-03-06 14:36:02 -05:00
Target-Symbol.js Fix yaml consistency 2018-03-06 14:36:02 -05:00
Target-Undefined.js Fix yaml consistency 2018-03-06 14:36:02 -05:00
assign-descriptor.js tools: enforce restriction on YAML includes key 2022-01-05 17:27:58 -05:00
assign-length.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
assignment-to-readonly-property-of-target-must-throw-a-typeerror-exception.js Coverage: Object.assign, Assignment to readonly property of target must throw a TypeError exception. Fixes gh-2788 2020-09-17 16:21:26 -04:00
invoked-as-ctor.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
name.js built-ins/Object/*: make all indentation consistent (depth & character) (#1432) 2018-02-15 15:33:45 -05:00
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 Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
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 built-ins/Object/*: make all indentation consistent (depth & character) (#1432) 2018-02-15 15:33:45 -05:00
source-own-prop-keys-error.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
strings-and-symbol-order-proxy.js Add Object.assign test 2020-04-25 18:45:48 -04:00
strings-and-symbol-order.js Various test cases for cross-browser compliance bugs 2018-05-03 09:27:27 -07:00
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 built-ins/Object/*: make all indentation consistent (depth & character) (#1432) 2018-02-15 15:33:45 -05:00
target-set-user-error.js built-ins/Object/*: make all indentation consistent (depth & character) (#1432) 2018-02-15 15:33:45 -05:00