From 2fd71f92381010724e24cd07d505f76e63b16394 Mon Sep 17 00:00:00 2001 From: Thomas Leah Date: Tue, 7 Aug 2018 11:40:38 +0100 Subject: [PATCH] test: don't mask descriptor.enumerable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/22172 Reviewed-By: Beth Griggs Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott Reviewed-By: Jon Moss --- test/common/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/index.js b/test/common/index.js index 084078cd9d0097..66326070a02166 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) {