diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/wasm/regress/lazy-table-nan.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/regress/lazy-table-nan.js b/js/src/jit-test/tests/wasm/regress/lazy-table-nan.js new file mode 100644 index 0000000000..aa7bda7485 --- /dev/null +++ b/js/src/jit-test/tests/wasm/regress/lazy-table-nan.js @@ -0,0 +1,10 @@ +let i = new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary(` +(module + (func $f (result f32) + f32.const nan:0x42 + ) + (table (export "table") 10 funcref) + (elem (i32.const 0) $f) +) +`))).exports; +i.table.get(0)(); |