summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/ion-lazy-stubs-jit.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/wasm/regress/ion-lazy-stubs-jit.js')
-rw-r--r--js/src/jit-test/tests/wasm/regress/ion-lazy-stubs-jit.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/regress/ion-lazy-stubs-jit.js b/js/src/jit-test/tests/wasm/regress/ion-lazy-stubs-jit.js
new file mode 100644
index 0000000000..f7592b14fb
--- /dev/null
+++ b/js/src/jit-test/tests/wasm/regress/ion-lazy-stubs-jit.js
@@ -0,0 +1,13 @@
+(function coerceinplace() {
+ var { table } = wasmEvalText(`(module
+ (func $add (param i32) (param i32) (result i32)
+ local.get 0
+ )
+ (table (export "table") 10 funcref)
+ (elem (i32.const 0) $add)
+ )`).exports;
+
+ for (var i = 0; i < 100; i++) {
+ table.get(0)((true).get++, i*2+1);
+ }
+})();