diff --git a/test/test.js b/test/test.js index ae1921c44..708fa79a1 100644 --- a/test/test.js +++ b/test/test.js @@ -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();