Debian Codegraph @

js/src/jit-test/tests/collections/Set-iterator-gc-2.js

raw
1 // GC-ing during a for-of loop doesn't crash.
2
3 var i = 0;
4 for (var x of new Set(Object.getOwnPropertyNames(this))) {
5 gc();
6 if (++i >= 20)
7 break;
8 }