mirror of https://github.com/tc39/test262.git
improve propertyHelper for failure messages (#1480)
Example: Before: descriptor value should be 42 Expected SameValue(«1», «0») to be true After: descriptor value should be 42
This commit is contained in:
parent
ccab9a18b0
commit
222b86cac5
|
@ -73,7 +73,7 @@ function verifyProperty(obj, name, desc, options) {
|
|||
}
|
||||
}
|
||||
|
||||
assert.sameValue(failures.length, 0, failures.join('; '));
|
||||
assert(!failures.length, failures.join('; '));
|
||||
|
||||
if (options && options.restore) {
|
||||
Object.defineProperty(obj, name, originalDesc);
|
||||
|
|
Loading…
Reference in New Issue