Skip to content

Commit

Permalink
improve propertyHelper for failure messages (tc39#1480)
Browse files Browse the repository at this point in the history
Example:
Before: descriptor value should be 42 Expected SameValue(«1», «0») to be true
After: descriptor value should be 42
  • Loading branch information
leobalter authored Mar 8, 2018
1 parent ccab9a1 commit 222b86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion harness/propertyHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 222b86c

Please sign in to comment.