Skip to content
Permalink
Browse files

test: don't mask descriptor.enumerable

PR-URL: #22172
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
  • Loading branch information...
tomleah authored and Trott committed Aug 7, 2018
1 parent c1e2d6b commit 2fd71f92381010724e24cd07d505f76e63b16394
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/common/index.js
@@ -693,8 +693,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) {

0 comments on commit 2fd71f9

Please sign in to comment.
You can’t perform that action at this time.