summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/worker-kill.js
blob: 36b5ab95620c698f64168d791040cc18a65deda9 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| skip-if: helperThreadCount() === 0

evalInWorker(`
    var code = "(module ";
    for (var i = 0; i < 100; i++)
        code += "(func (param i32) (result i32) (i32.add (i32.const 1) (local.get 0))) ";
    code += ")";
    var buf = wasmTextToBinary(code);
    WebAssembly.compile(buf);
`);