diff options
Diffstat (limited to 'js/src/jit-test/tests/wasm/worker-kill.js')
-rw-r--r-- | js/src/jit-test/tests/wasm/worker-kill.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/worker-kill.js b/js/src/jit-test/tests/wasm/worker-kill.js new file mode 100644 index 0000000000..36b5ab9562 --- /dev/null +++ b/js/src/jit-test/tests/wasm/worker-kill.js @@ -0,0 +1,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); +`); |