★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/7a4c7e6c82Nouvelle recherche | Portail wanayoo
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 rvagg committed Aug 7, 2018
1 parent f989681 commit 7a4c7e6c82151b750020891ab3767ff0f6144883
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/common/index.js
@@ -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) {

0 comments on commit 7a4c7e6

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