mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Add lodashBizarro tests for cloning typed arrays.
This commit is contained in:
@@ -105,6 +105,10 @@
|
||||
setProperty(document, '_createDocumentFragment', document.createDocumentFragment);
|
||||
document.createDocumentFragment = function() {};
|
||||
|
||||
setProperty(window, '_Float64Array', window.Float64Array);
|
||||
if (!_Float64Array) {
|
||||
setProperty(window, 'Float64Array', window.Uint8Array);
|
||||
}
|
||||
setProperty(window, 'global', window);
|
||||
setProperty(window, 'WinRTError', Error);
|
||||
}
|
||||
@@ -145,6 +149,9 @@
|
||||
} else {
|
||||
delete String.prototype.contains;
|
||||
}
|
||||
if (!_Float64Array) {
|
||||
setProperty(window, 'Float64Array', undefined);
|
||||
}
|
||||
setProperty(Function.prototype, 'toString', Function.prototype._toString);
|
||||
setProperty(Object.prototype, 'hasOwnProperty', Object.prototype._hasOwnProperty);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user