From dfbe1c5c83e6c1d0002a4cff03cc4f7adca19500 Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Mon, 28 Aug 2017 23:31:23 +0200 Subject: [PATCH] Try to use a function declaration for the printOutput function instead of var printOutput = function... --- lib/Unexpected.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Unexpected.js b/lib/Unexpected.js index f03cd656c..c46e55678 100644 --- a/lib/Unexpected.js +++ b/lib/Unexpected.js @@ -300,7 +300,7 @@ Unexpected.prototype.equal = function (actual, expected, depth, seen) { Unexpected.prototype.inspect = function (obj, depth, outputOrFormat) { var seen = []; var that = this; - var printOutput = function (obj, currentDepth, output) { + function printOutput(obj, currentDepth, output) { var objType = that.findTypeOf(obj); if (currentDepth <= 0 && objType.is('object') && !objType.is('expect.it')) { return output.text('...');