mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Fix rhino and other old environment test fail.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user