mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 13:04:39 +02:00
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) {
|
if (options && options.restore) {
|
||||||
Object.defineProperty(obj, name, originalDesc);
|
Object.defineProperty(obj, name, originalDesc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user