summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/big-resize.js
blob: 9e3a62815004bddefecb0b941dabcf3139048f9e (plain)
1
2
3
4
5
6
7
8
9
10
load(libdir + "wasm.js");

wasmFullPass(`(module
    (memory 1 32768)
    (func $test (result i32)
        (if (i32.eq (grow_memory (i32.const 16384)) (i32.const -1)) (return (i32.const 42)))
        (i32.store (i32.const 1073807356) (i32.const 42))
        (i32.load (i32.const 1073807356)))
    (export "run" $test)
)`, 42);