Source code
Revision control
Copy as Markdown
Other Tools
// GC-ing during a for-of loop doesn't crash.
var i = 0;
for (var x of new Set(Object.getOwnPropertyNames(this))) {
gc();
if (++i >= 20)
break;
}
// GC-ing during a for-of loop doesn't crash.
var i = 0;
for (var x of new Set(Object.getOwnPropertyNames(this))) {
gc();
if (++i >= 20)
break;
}