diff options
Diffstat (limited to 'test/binaryen.js/kitchen-sink.js')
-rw-r--r-- | test/binaryen.js/kitchen-sink.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/binaryen.js/kitchen-sink.js b/test/binaryen.js/kitchen-sink.js index a44cd9116..ac101c93d 100644 --- a/test/binaryen.js/kitchen-sink.js +++ b/test/binaryen.js/kitchen-sink.js @@ -484,6 +484,11 @@ function test_core() { module.returnCall("kitchen()sinker", [ makeInt32(13), makeInt64(37, 0), makeFloat32(1.3), makeFloat64(3.7) ], Binaryen.i32), module.returnCallIndirect(makeInt32(2449), [ makeInt32(13), makeInt64(37, 0), makeFloat32(1.3), makeFloat64(3.7) ], iIfF, Binaryen.i32), + // Reference types + module.ref.is_null(module.ref.null()), + module.ref.is_null(module.ref.func("kitchen()sinker")), + module.select(temp10, module.ref.null(), module.ref.func("kitchen()sinker"), Binaryen.funcref), + // Exception handling module.try( module.throw("a-event", [module.i32.const(0)]), @@ -530,6 +535,8 @@ function test_core() { module.push(module.f64.pop()), module.push(module.v128.pop()), module.push(module.anyref.pop()), + module.push(module.funcref.pop()), + module.push(module.nullref.pop()), module.push(module.exnref.pop()), // TODO: Host module.nop(), |