Assign setTimeout to itself to avoid leak detection.

This commit is contained in:
John-David Dalton
2016-05-19 21:35:44 -07:00
parent f90c3f2483
commit 47635b9978

View File

@@ -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();