mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Fix rhino and other old environment test fail.
This commit is contained in:
@@ -56,7 +56,8 @@
|
|||||||
slice = arrayProto.slice,
|
slice = arrayProto.slice,
|
||||||
Symbol = root.Symbol,
|
Symbol = root.Symbol,
|
||||||
system = root.system,
|
system = root.system,
|
||||||
Uint8Array = root.Uint8Array;
|
Uint8Array = root.Uint8Array,
|
||||||
|
WeakMap = root.WeakMap;
|
||||||
|
|
||||||
/** Math helpers. */
|
/** Math helpers. */
|
||||||
var add = function(x, y) { return x + y; },
|
var add = function(x, y) { return x + y; },
|
||||||
@@ -2233,7 +2234,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('`_.' + methodName + '` should support shortcut fusion', 3, function() {
|
test('`_.' + methodName + '` should support shortcut fusion', 3, function() {
|
||||||
if (!isNpm && _.support.funcNames) {
|
if (!isNpm && WeakMap && _.support.funcNames) {
|
||||||
var filterCount = 0,
|
var filterCount = 0,
|
||||||
mapCount = 0;
|
mapCount = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user