Skip to content

Commit

Permalink
test: don't mask descriptor.enumerable
Browse files Browse the repository at this point in the history
PR-URL: #22172
Reviewed-By: Beth Griggs <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
  • Loading branch information
tomleah authored and targos committed Aug 11, 2018
1 parent b1a9cf7 commit 95b2467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,8 @@ exports.expectsError = function expectsError(fn, settings, exact) {
assert.fail(`Expected one argument, got ${util.inspect(arguments)}`);
}
const descriptor = Object.getOwnPropertyDescriptor(error, 'message');
assert.strictEqual(descriptor.enumerable,
false, 'The error message should be non-enumerable');
// The error message should be non-enumerable
assert.strictEqual(descriptor.enumerable, false);

let innerSettings = settings;
if ('type' in settings) {
Expand Down

0 comments on commit 95b2467

Please sign in to comment.