mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Increate code coverage for AMD build of the root module.
This commit is contained in:
@@ -102,10 +102,11 @@
|
|||||||
setProperty(String.prototype, '_contains', String.prototype.contains);
|
setProperty(String.prototype, '_contains', String.prototype.contains);
|
||||||
setProperty(String.prototype, 'contains', String.prototype._contains ? function() {} : Boolean);
|
setProperty(String.prototype, 'contains', String.prototype._contains ? function() {} : Boolean);
|
||||||
|
|
||||||
setProperty(window, 'WinRTError', Error);
|
|
||||||
|
|
||||||
setProperty(document, '_createDocumentFragment', document.createDocumentFragment);
|
setProperty(document, '_createDocumentFragment', document.createDocumentFragment);
|
||||||
document.createDocumentFragment = function() {};
|
document.createDocumentFragment = function() {};
|
||||||
|
|
||||||
|
setProperty(window, 'global', window);
|
||||||
|
setProperty(window, 'WinRTError', Error);
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeBizarroMethods() {
|
function removeBizarroMethods() {
|
||||||
@@ -144,13 +145,15 @@
|
|||||||
} else {
|
} else {
|
||||||
delete String.prototype.contains;
|
delete String.prototype.contains;
|
||||||
}
|
}
|
||||||
setProperty(window, 'WinRTError', undefined);
|
|
||||||
setProperty(Function.prototype, 'toString', Function.prototype._toString);
|
setProperty(Function.prototype, 'toString', Function.prototype._toString);
|
||||||
setProperty(Object.prototype, 'hasOwnProperty', Object.prototype._hasOwnProperty);
|
setProperty(Object.prototype, 'hasOwnProperty', Object.prototype._hasOwnProperty);
|
||||||
|
|
||||||
document.createDocumentFragment = document._createDocumentFragment;
|
document.createDocumentFragment = document._createDocumentFragment;
|
||||||
setProperty(document, '_createDocumentFragment', undefined);
|
setProperty(document, '_createDocumentFragment', undefined);
|
||||||
|
|
||||||
|
setProperty(window, 'global', undefined);
|
||||||
|
setProperty(window, 'WinRTError', undefined);
|
||||||
|
|
||||||
delete Array._isArray;
|
delete Array._isArray;
|
||||||
delete Date._now;
|
delete Date._now;
|
||||||
delete Function.prototype._method;
|
delete Function.prototype._method;
|
||||||
|
|||||||
Reference in New Issue
Block a user