giant-frames.js (432B)
1 // |jit-test| test-also=--setpref=wasm_test_serialization=true 2 3 const { test } = wasmEvalText(`(module 4 (import "" "gc" (func $gc)) 5 (func (export "test") (param ${"anyref ".repeat(1_000)}) (result anyref) 6 (local ${"anyref ".repeat(50_000 - 1_000)}) 7 8 ${[...new Array(10_000).keys()].map(i => `local.get ${i}`).join("\n")} 9 call $gc 10 ${"drop\n".repeat(10_000 - 1)} 11 ) 12 )`, {"": {gc}}).exports; 13 14 assertEq(test(5), 5);