Skip to content

Instantly share code, notes, and snippets.

@makotom
Last active April 20, 2019 16:06
Show Gist options
  • Save makotom/d723197c0160f5337013c2461beafe52 to your computer and use it in GitHub Desktop.
Save makotom/d723197c0160f5337013c2461beafe52 to your computer and use it in GitHub Desktop.
Memory leak in JSDOM...???
const jsdom = require('jsdom');
for (let iter = 0; ; iter += 1) {
new jsdom.JSDOM(`${iter}`);
if (iter % 1000 === 0) {
console.log(iter); // eslint-disable-line no-console
}
}
@makotom
Copy link
Author

makotom commented Apr 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment