mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57: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 ? function() {} : Boolean);
|
||||
|
||||
setProperty(window, 'WinRTError', Error);
|
||||
|
||||
setProperty(document, '_createDocumentFragment', document.createDocumentFragment);
|
||||
document.createDocumentFragment = function() {};
|
||||
|
||||
setProperty(window, 'global', window);
|
||||
setProperty(window, 'WinRTError', Error);
|
||||
}
|
||||
|
||||
function removeBizarroMethods() {
|
||||
@@ -144,13 +145,15 @@
|
||||
} else {
|
||||
delete String.prototype.contains;
|
||||
}
|
||||
setProperty(window, 'WinRTError', undefined);
|
||||
setProperty(Function.prototype, 'toString', Function.prototype._toString);
|
||||
setProperty(Object.prototype, 'hasOwnProperty', Object.prototype._hasOwnProperty);
|
||||
|
||||
document.createDocumentFragment = document._createDocumentFragment;
|
||||
setProperty(document, '_createDocumentFragment', undefined);
|
||||
|
||||
setProperty(window, 'global', undefined);
|
||||
setProperty(window, 'WinRTError', undefined);
|
||||
|
||||
delete Array._isArray;
|
||||
delete Date._now;
|
||||
delete Function.prototype._method;
|
||||
|
||||
Reference in New Issue
Block a user