blob: 645980789fdf74cfdf361f8d4f30f131ebe10fb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |jit-test| skip-if: !('oomTest' in this)
function test() {
function foo() {
return 1;
};
oomTest(() => {
gc();
foo.toString();
});
}
var s = ";".repeat(70000);
s += test.toString() + "test()";
s += ";".repeat(70000);
eval(s);
|