Skip to content

Commit 2fd71f9

Browse files
tomleahTrott
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 c1e2d6b commit 2fd71f9

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
@@ -693,8 +693,8 @@ exports.expectsError = function expectsError(fn, settings, exact) {
693693
assert.fail(`Expected one argument, got ${util.inspect(arguments)}`);
694694
}
695695
const descriptor = Object.getOwnPropertyDescriptor(error, 'message');
696-
assert.strictEqual(descriptor.enumerable,
697-
false, 'The error message should be non-enumerable');
696+
// The error message should be non-enumerable
697+
assert.strictEqual(descriptor.enumerable, false);
698698

699699
let innerSettings = settings;
700700
if ('type' in settings) {

0 commit comments

Comments
 (0)