mirror of https://github.com/tc39/test262.git
d87a7da6e1
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 |
||
---|---|---|
.. | ||
default | ||
error | ||
mult-empty.case | ||
mult-err-expr-throws.case | ||
mult-err-iter-get-value.case | ||
mult-err-itr-get-call.case | ||
mult-err-itr-get-get.case | ||
mult-err-itr-step.case | ||
mult-err-itr-value.case | ||
mult-err-obj-unresolvable.case | ||
mult-err-unresolvable.case | ||
mult-expr.case | ||
mult-iter.case | ||
mult-literal.case | ||
mult-obj-ident.case | ||
mult-obj-null.case | ||
mult-obj-undefined.case | ||
obj-getter-descriptor.case | ||
obj-getter-init.case | ||
obj-manipulate-outter-obj-in-getter.case | ||
obj-mult-spread-getter.case | ||
obj-mult-spread.case | ||
obj-null.case | ||
obj-override-immutable.case | ||
obj-overrides-prev-properties.case | ||
obj-skip-non-enumerable.case | ||
obj-spread-order.case | ||
obj-symbol-property.case | ||
obj-undefined.case | ||
obj-with-overrides.case | ||
sngl-empty.case | ||
sngl-err-expr-throws.case | ||
sngl-err-itr-get-call.case | ||
sngl-err-itr-get-get.case | ||
sngl-err-itr-get-value.case | ||
sngl-err-itr-step.case | ||
sngl-err-itr-value.case | ||
sngl-err-obj-unresolvable.case | ||
sngl-err-unresolvable.case | ||
sngl-expr.case | ||
sngl-iter.case | ||
sngl-literal.case | ||
sngl-obj-ident.case |