From 222b86cac5eb39848b187cf227b56aedead62129 Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Thu, 8 Mar 2018 12:12:15 -0500 Subject: [PATCH] improve propertyHelper for failure messages (#1480) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Example: Before: descriptor value should be 42 Expected SameValue(«1», «0») to be true After: descriptor value should be 42 --- harness/propertyHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harness/propertyHelper.js b/harness/propertyHelper.js index cc1359fe67..edf86e9490 100644 --- a/harness/propertyHelper.js +++ b/harness/propertyHelper.js @@ -73,7 +73,7 @@ function verifyProperty(obj, name, desc, options) { } } - assert.sameValue(failures.length, 0, failures.join('; ')); + assert(!failures.length, failures.join('; ')); if (options && options.restore) { Object.defineProperty(obj, name, originalDesc);