Last active
April 20, 2019 16:06
-
-
Save makotom/d723197c0160f5337013c2461beafe52 to your computer and use it in GitHub Desktop.
Memory leak in JSDOM...???
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also: https://gist.github.com/makotom/616a2c405ed2f2419bec6048410066be