mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +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.
|
// Leak to avoid sporadic `noglobals` fails on Edge in Sauce Labs.
|
||||||
root.msWDfn = undefined;
|
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.
|
// Exit early if going to run tests in a PhantomJS web page.
|
||||||
if (phantom && isModularize) {
|
if (phantom && isModularize) {
|
||||||
var page = require('webpage').create();
|
var page = require('webpage').create();
|
||||||
|
|||||||
Reference in New Issue
Block a user