Skip to content

Instantly share code, notes, and snippets.

@mhofman
mhofman / demo-scope-leak.js
Created May 25, 2024 01:57
test cases to show how different engines retain values in scope
//// Preamble to normalize environments \\\\
if (typeof console === 'undefined') {
globalThis.console = {
log() {
print(...arguments);
},
};
}
const enqueueHostTask =