From 5aa44e98d5a14ac9fbb0747c7d2de05d0786a627 Mon Sep 17 00:00:00 2001 From: jdalton Date: Fri, 20 Mar 2015 12:00:29 -0700 Subject: [PATCH] Fix rhino and other old environment test fail. --- test/test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 848205a8c..58f3873b7 100644 --- a/test/test.js +++ b/test/test.js @@ -56,7 +56,8 @@ slice = arrayProto.slice, Symbol = root.Symbol, system = root.system, - Uint8Array = root.Uint8Array; + Uint8Array = root.Uint8Array, + WeakMap = root.WeakMap; /** Math helpers. */ var add = function(x, y) { return x + y; }, @@ -2233,7 +2234,7 @@ }); test('`_.' + methodName + '` should support shortcut fusion', 3, function() { - if (!isNpm && _.support.funcNames) { + if (!isNpm && WeakMap && _.support.funcNames) { var filterCount = 0, mapCount = 0;