From 8654d83a33d0a6f2d6ab3bd543e81ae58eea916e Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 23 Jan 2014 23:19:13 -0800 Subject: [PATCH] Drop 'use strict' in the unit tests and make its IIFE more closely resemble lodash's. --- test/test.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index 0254c5122..8cead558b 100644 --- a/test/test.js +++ b/test/test.js @@ -1,9 +1,14 @@ -;(function(root, undefined) { - 'use strict'; +;(function() { + + /** Used as a safe reference for `undefined` in pre ES5 environments */ + var undefined; /** Used as the size when optimizations are enabled for arrays */ var LARGE_ARRAY_SIZE = 75; + /** Used as a reference to the global object */ + var root = typeof global == 'object' && global || this; + /** Used to store Lo-Dash to test for bad extensions/shims */ var lodashBizarro = root.lodashBizarro; @@ -9192,4 +9197,4 @@ QUnit.config.noglobals = true; QUnit.start(); } -}(typeof global == 'object' && global || this)); +}.call(this));