test262/src/spread
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
..
default Remove es6id from generation files 2019-08-05 10:54:37 -04:00
error Remove es6id from generation files 2019-08-05 10:54:37 -04:00
mult-empty.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
mult-err-expr-throws.case Add generators flags for tests depending on generators features (#1259) 2017-10-04 16:12:34 -04:00
mult-err-iter-get-value.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
mult-err-itr-get-call.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
mult-err-itr-get-get.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
mult-err-itr-step.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
mult-err-itr-value.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
mult-err-obj-unresolvable.case Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
mult-err-unresolvable.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
mult-expr.case Add test cases for spread operator 2016-06-11 17:42:50 -04:00
mult-iter.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
mult-literal.case Add test cases for spread operator 2016-06-11 17:42:50 -04:00
mult-obj-ident.case Update test generation files to use verifyProperty instead of legacy helpers 2017-09-08 10:13:36 -04:00
mult-obj-null.case Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
mult-obj-undefined.case Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
obj-getter-descriptor.case Update test generation files to use verifyProperty instead of legacy helpers 2017-09-08 10:13:36 -04:00
obj-getter-init.case Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
obj-manipulate-outter-obj-in-getter.case Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
obj-mult-spread-getter.case Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
obj-mult-spread.case Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
obj-null.case Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
obj-override-immutable.case Update test generation files to use verifyProperty instead of legacy helpers 2017-09-08 10:13:36 -04:00
obj-overrides-prev-properties.case Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
obj-skip-non-enumerable.case Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
obj-spread-order.case chore: update src/**/*.case to use assert.compareArray wherever applicable 2021-10-01 16:38:56 -04:00
obj-symbol-property.case Replace Object.hasOwnProperty.call with Object.prototype.hasOwnProperty.call 2022-11-30 16:04:02 -08:00
obj-undefined.case Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
obj-with-overrides.case Add missing Symbol features flags 2017-09-07 15:51:13 -04:00
sngl-empty.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
sngl-err-expr-throws.case Add initial set of generated test sources 2016-03-16 15:29:30 -04:00
sngl-err-itr-get-call.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
sngl-err-itr-get-get.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
sngl-err-itr-get-value.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
sngl-err-itr-step.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
sngl-err-itr-value.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
sngl-err-obj-unresolvable.case Add feature flags for various tests 2017-04-06 12:18:03 -04:00
sngl-err-unresolvable.case Add test cases for the spread operator 2016-05-19 15:06:12 -04:00
sngl-expr.case Add test cases for spread operator 2016-06-11 17:42:50 -04:00
sngl-iter.case Use distinct variable name within test case 2016-05-19 15:06:13 -04:00
sngl-literal.case Add test cases for spread operator 2016-06-11 17:42:50 -04:00
sngl-obj-ident.case Update test generation files to use verifyProperty instead of legacy helpers 2017-09-08 10:13:36 -04:00