diff --git a/js/src/jit-test/tests/wasm/bigint/bigint.js b/js/src/jit-test/tests/wasm/bigint/bigint.js index a6f4fc4196fd..6ef492d48125 100644 --- a/js/src/jit-test/tests/wasm/bigint/bigint.js +++ b/js/src/jit-test/tests/wasm/bigint/bigint.js @@ -111,7 +111,7 @@ function testManyArgs() { function testImportExport() { var f1 = wasmEvalText( `(module - (import "i64" "func" (param i64)) + (import "i64" "func" (func (param i64))) (export "f" (func 0)) )`, { @@ -125,7 +125,7 @@ function testImportExport() { var f2 = wasmEvalText( `(module - (import "i64" "func" (param i64) (result i64)) + (import "i64" "func" (func (param i64) (result i64))) (export "f" (func 0)) )`, { @@ -139,7 +139,7 @@ function testImportExport() { var f3 = wasmEvalText( `(module - (import $i64 "" "i64" (param i64) (result i64)) + (import "" "i64" (func $i64 (param i64) (result i64))) (func (export "f") (param i64) (result i64) (get_local 0) (call $i64)) @@ -155,7 +155,7 @@ function testImportExport() { var f4 = wasmEvalText( `(module - (import "i64" "func" (result i64)) + (import "i64" "func" (func (result i64))) (export "f" (func 0)) )`, { i64: { func() {} } } diff --git a/js/src/jit-test/tests/wasm/bigint/stubs.js b/js/src/jit-test/tests/wasm/bigint/stubs.js index aafd2bb42852..cbfbe59b7914 100644 --- a/js/src/jit-test/tests/wasm/bigint/stubs.js +++ b/js/src/jit-test/tests/wasm/bigint/stubs.js @@ -52,11 +52,11 @@ ex = wasmEvalText( `(module - (import $ffi "a" "ffi" (param i64) (result i64)) - (import $ffi2 "a" "ffi2" + (import "a" "ffi" (func $ffi (param i64) (result i64))) + (import "a" "ffi2" (func $ffi2 (param i64 i32 i32 i32 i32 i32 i32) - (result i64)) - (import $ffi3 "a" "ffi3" (param i64 i64 i64 i64) (result i64)) + (result i64))) + (import "a" "ffi3" (func $ffi3 (param i64 i64 i64 i64) (result i64))) (func (export "callffi") (param i64) (result i64) local.get 0