Skip to content

Commit 95b2467

Browse files
tomleahtargos
authored andcommitted
test: don't mask descriptor.enumerable
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]>
1 parent b1a9cf7 commit 95b2467

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/common/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,8 @@ exports.expectsError = function expectsError(fn, settings, exact) {
703703
assert.fail(`Expected one argument, got ${util.inspect(arguments)}`);
704704
}
705705
const descriptor = Object.getOwnPropertyDescriptor(error, 'message');
706-
assert.strictEqual(descriptor.enumerable,
707-
false, 'The error message should be non-enumerable');
706+
// The error message should be non-enumerable
707+
assert.strictEqual(descriptor.enumerable, false);
708708

709709
let innerSettings = settings;
710710
if ('type' in settings) {

0 commit comments

Comments
 (0)