mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Fix test fails in IE11.
This commit is contained in:
16
lodash.js
16
lodash.js
@@ -219,8 +219,8 @@
|
|||||||
/** Used to assign default `context` object properties. */
|
/** Used to assign default `context` object properties. */
|
||||||
var contextProps = [
|
var contextProps = [
|
||||||
'Array', 'Date', 'Error', 'Float32Array', 'Float64Array', 'Function',
|
'Array', 'Date', 'Error', 'Float32Array', 'Float64Array', 'Function',
|
||||||
'Int8Array', 'Int16Array', 'Int32Array', 'Math', 'Object', 'Reflect',
|
'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
|
||||||
'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
|
'Reflect', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
|
||||||
'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap', '_',
|
'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap', '_',
|
||||||
'clearTimeout', 'isFinite', 'parseFloat', 'parseInt', 'setTimeout'
|
'clearTimeout', 'isFinite', 'parseFloat', 'parseInt', 'setTimeout'
|
||||||
];
|
];
|
||||||
@@ -4713,9 +4713,15 @@
|
|||||||
Ctor = result == objectTag ? value.constructor : null,
|
Ctor = result == objectTag ? value.constructor : null,
|
||||||
ctorString = typeof Ctor == 'function' ? fnToString.call(Ctor) : '';
|
ctorString = typeof Ctor == 'function' ? fnToString.call(Ctor) : '';
|
||||||
|
|
||||||
return ctorString == mapCtorString
|
if (ctorString) {
|
||||||
? mapTag
|
if (ctorString == mapCtorString) {
|
||||||
: (ctorString == setCtorString ? setTag : result);
|
return mapTag;
|
||||||
|
}
|
||||||
|
if (ctorString == setCtorString) {
|
||||||
|
return setTag;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user