Source code
Revision control
Copy as Markdown
Other Tools
// |jit-test| slow; skip-if: typeof evalInWorker === 'undefined' || helperThreadCount() === 0
gcslice(11);
evalInWorker("print('helo world');");
for (i = 0; i < 100000; i++) {}
evalInWorker("\
for (var i = 0; i < 10; i++) { \
var o = {}; \
for (var j = 0; j < 100; j++) \
o['a' + j] = j; \
JSON.stringify(o); \
o = null; \
gc(); \
}");
for (var i = 0; i < 10; i++) {
gc();
for (var j = 0; j < 100000; j++) {}
}