mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Fix tests in old IE.
This commit is contained in:
@@ -106,7 +106,7 @@
|
|||||||
document.createDocumentFragment = function() {};
|
document.createDocumentFragment = function() {};
|
||||||
|
|
||||||
setProperty(window, '_Float64Array', window.Float64Array);
|
setProperty(window, '_Float64Array', window.Float64Array);
|
||||||
if (!_Float64Array) {
|
if (!window._Float64Array) {
|
||||||
setProperty(window, 'Float64Array', window.Uint8Array);
|
setProperty(window, 'Float64Array', window.Uint8Array);
|
||||||
}
|
}
|
||||||
setProperty(window, 'global', window);
|
setProperty(window, 'global', window);
|
||||||
@@ -149,7 +149,7 @@
|
|||||||
} else {
|
} else {
|
||||||
delete String.prototype.contains;
|
delete String.prototype.contains;
|
||||||
}
|
}
|
||||||
if (!_Float64Array) {
|
if (!window._Float64Array) {
|
||||||
setProperty(window, 'Float64Array', undefined);
|
setProperty(window, 'Float64Array', undefined);
|
||||||
}
|
}
|
||||||
setProperty(Function.prototype, 'toString', Function.prototype._toString);
|
setProperty(Function.prototype, 'toString', Function.prototype._toString);
|
||||||
|
|||||||
Reference in New Issue
Block a user