summaryrefslogtreecommitdiff
path: root/test/common/index.js
diff options
context:
space:
mode:
authorThomas Leah <thomas@leahfamily.plus.com>2018-08-07 11:40:38 +0100
committerRich Trott <rtrott@gmail.com>2018-08-09 13:18:41 -0700
commit2fd71f92381010724e24cd07d505f76e63b16394 (patch)
tree1c7f7fe4d7b048f5b51dc0ef8775d613228a693d /test/common/index.js
parentc1e2d6b0f16568f1a115feab071adf41de72c72d (diff)
downloadandroid-node-v8-2fd71f92381010724e24cd07d505f76e63b16394.tar.gz
android-node-v8-2fd71f92381010724e24cd07d505f76e63b16394.tar.bz2
android-node-v8-2fd71f92381010724e24cd07d505f76e63b16394.zip
test: don't mask descriptor.enumerable
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test/common/index.js')
-rw-r--r--test/common/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/common/index.js b/test/common/index.js
index 084078cd9d..66326070a0 100644
--- a/test/common/index.js
+++ b/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) {