diff options
Diffstat (limited to 'test/binaryen.js')
-rw-r--r-- | test/binaryen.js/kitchen-sink.js | 6 | ||||
-rw-r--r-- | test/binaryen.js/tail_calls.js | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/binaryen.js/kitchen-sink.js b/test/binaryen.js/kitchen-sink.js index c703ccfaa..ef0691f52 100644 --- a/test/binaryen.js/kitchen-sink.js +++ b/test/binaryen.js/kitchen-sink.js @@ -472,7 +472,7 @@ function test_core() { ) ), module.i32.eqz( // check the output type of the call node - module.callIndirect(makeInt32(2449), [ makeInt32(13), makeInt64(37, 0), makeFloat32(1.3), makeFloat64(3.7) ], iIfF, binaryen.i32) + module.call_indirect(makeInt32(2449), [ makeInt32(13), makeInt64(37, 0), makeFloat32(1.3), makeFloat64(3.7) ], iIfF, binaryen.i32) ), module.drop(module.local.get(0, binaryen.i32)), module.local.set(0, makeInt32(101)), @@ -486,8 +486,8 @@ function test_core() { module.select(temp10, temp11, temp12), module.return(makeInt32(1337)), // Tail Call - 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), + module.return_call("kitchen()sinker", [ makeInt32(13), makeInt64(37, 0), makeFloat32(1.3), makeFloat64(3.7) ], binaryen.i32), + module.return_call_indirect(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()), diff --git a/test/binaryen.js/tail_calls.js b/test/binaryen.js/tail_calls.js index 7ad0bfddd..1b993be91 100644 --- a/test/binaryen.js/tail_calls.js +++ b/test/binaryen.js/tail_calls.js @@ -9,7 +9,7 @@ var foo = module.addFunction( binaryen.none, binaryen.none, [], - module.returnCall("foo", [], binaryen.none, binaryen.none) + module.return_call("foo", [], binaryen.none, binaryen.none) ); var bar = module.addFunction( @@ -17,7 +17,7 @@ var bar = module.addFunction( binaryen.none, binaryen.none, [], - module.returnCallIndirect( + module.return_call_indirect( module.i32.const(0), [], binaryen.none, |