From 0d331d91a6ebe51147e49dc32c87651d0823651a Mon Sep 17 00:00:00 2001 From: kkapsner Date: Thu, 12 Dec 2019 23:27:21 +0100 Subject: [PATCH] Fixed output in checkPropertyDescriptor() --- test/detectionTest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/detectionTest.js b/test/detectionTest.js index e84c6d5..25b29ea 100644 --- a/test/detectionTest.js +++ b/test/detectionTest.js @@ -54,16 +54,16 @@ function checkPropertyDescriptor(object, name, expectedDescriptor, log){ if ((typeof expected) === "function"){ if (got.name !== expected.name){ detected = true; - logProperty(desc + " (function name)", expected.name, got.name); + logProperty(desc + " (function name)", got.name, expected.name); } if (got.length !== expected.length){ detected = true; - logProperty(desc + " (function length)", expected.length, got.length); + logProperty(desc + " (function length)", got.length, expected.length); } const re = "^\\s*function " + expected.name + "\\s*\\(\\)\\s*\\{\\s*\\[native code\\]\\s*\\}\\s*$"; if (!got.toString().match(new RegExp(re))){ detected = true; - logProperty(desc + " (function string)", re, got.toString()); + logProperty(desc + " (function string)", got.toString(), re); } } else if (got !== expected){