test262/implementation-contributed/javascriptcore/stress/out-of-frame-stack-accesses...

15 lines
638 B
JavaScript

//@ requireOptions("--useProbeOSRExit=true", "--forceEagerCompilation=true")
// This test passes if it does not crash especially on ASAN builds.
let x = 0;
function Foo(a) {
a === a;
'' + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x + x;
}
for (let i=0; i<8; i++)
new Foo(0);
new Foo({});