blob: 66994338af8c71b0818ecc11f9f12aa2f5bf3014 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
if (!('oomTest' in this))
quit();
function f(s) {
s + "x";
s.indexOf("y") === 0;
oomTest(new Function(s));
}
var s = `
class TestClass { constructor() {} }
for (var fun of hasPrototype) {}
`;
if (s.length)
f(s);
|