We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NodeJS version: v6.10.3 jsdom version: jsdom@11.0.0
const jsdom = require("jsdom"); const { JSDOM } = jsdom; const window = (new JSDOM(``, { runScripts: "outside-only" })).window; window.setTimeout(function() { window.close(); window.setTimeout(function () { window.location.href = "hello"; }, 300); }, 1000);
In browsers after window.close(); all pending timeouts are cleared and new ones are not set up.
The text was updated successfully, but these errors were encountered:
Great repro code, thanks! I will investigate this as soon as I am able to.
Sorry, something went wrong.
dc1e377
Don't start timers after the window has closed
3f306be
Fixes #1893.
No branches or pull requests
Basic info:
NodeJS version: v6.10.3
jsdom version: jsdom@11.0.0
Minimal reproduction case
In browsers after window.close(); all pending timeouts are cleared and new ones are not set up.
The text was updated successfully, but these errors were encountered: