summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/ub-san-interp-entry.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/wasm/ub-san-interp-entry.js')
-rw-r--r--js/src/jit-test/tests/wasm/ub-san-interp-entry.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/ub-san-interp-entry.js b/js/src/jit-test/tests/wasm/ub-san-interp-entry.js
new file mode 100644
index 0000000000..218977d34e
--- /dev/null
+++ b/js/src/jit-test/tests/wasm/ub-san-interp-entry.js
@@ -0,0 +1,4 @@
+var { table } = wasmEvalText(`
+ (module (func $add) (table (export "table") 10 funcref) (elem (i32.const 0) $add))
+`).exports
+table.get(0)();