mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Assign setTimeout to itself to avoid leak detection.
This commit is contained in:
@@ -233,6 +233,9 @@
|
||||
// Leak to avoid sporadic `noglobals` fails on Edge in Sauce Labs.
|
||||
root.msWDfn = undefined;
|
||||
|
||||
// Assign `setTimeout` to itself to avoid being flagged as a leak.
|
||||
setProperty(root, 'setTimeout', setTimeout);
|
||||
|
||||
// Exit early if going to run tests in a PhantomJS web page.
|
||||
if (phantom && isModularize) {
|
||||
var page = require('webpage').create();
|
||||
|
||||
Reference in New Issue
Block a user