From eccab3cd578ce58b0228c4b4d77daf7900894cd4 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 30 May 2013 09:37:09 -0400 Subject: [PATCH] Fix build test for older Node versions w/o setImmediate. Former-commit-id: 9f21f174626cd86eefd0a26cf0b36a60858ba501 --- test/test-build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-build.js b/test/test-build.js index a9d766bdb..d44097e0a 100644 --- a/test/test-build.js +++ b/test/test-build.js @@ -1535,7 +1535,7 @@ vm.runInContext(data.source, context, true); var lodash = context._; - if (methodName == 'chain' || methodName == 'defer' || methodName == 'findWhere') { + if (methodName == 'chain' || methodName == 'findWhere' || (methodName == 'defer' && global.setImmediate)) { notEqual(strip(lodash[methodName]), strip(_[methodName]), basename); } else if (!/\.min$/.test(basename)) { equal(strip(lodash[methodName]), strip(_[methodName]), basename);