diff --git a/harness/deepEqual.js b/harness/deepEqual.js index 19522e5845..0cd0a49dac 100644 --- a/harness/deepEqual.js +++ b/harness/deepEqual.js @@ -14,6 +14,7 @@ assert.deepEqual = function(actual, expected, message) { ); }; +(function() { let getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; let join = arr => arr.join(', '); function stringFromTemplate(strings, ...subs) { @@ -131,6 +132,7 @@ assert.deepEqual.format = function(value, seen) { let contents = keys.map(key => lazyString`${escapeKey(key)}: ${format(value[key], seen)}`); return lazyResult`${tag ? `${tag} ` : ''}{${contents}}`(String, join); }; +})(); assert.deepEqual._compare = (function () { var EQUAL = 1;