summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/wasm/js-api.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/wasm/js-api.js')
-rw-r--r--deps/v8/test/mjsunit/wasm/js-api.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/v8/test/mjsunit/wasm/js-api.js b/deps/v8/test/mjsunit/wasm/js-api.js
index f9b231242c..30ddf4c1ee 100644
--- a/deps/v8/test/mjsunit/wasm/js-api.js
+++ b/deps/v8/test/mjsunit/wasm/js-api.js
@@ -715,18 +715,18 @@ assertThrows(
/must be convertible to a valid number/);
assertThrows(
() => set.call(tbl1, 0, undefined), TypeError,
- /must be null or a WebAssembly function/);
+ /Argument 1 is invalid for table of type funcref/);
assertThrows(
() => set.call(tbl1, undefined, undefined), TypeError,
/must be convertible to a valid number/);
assertThrows(
() => set.call(tbl1, 0, {}), TypeError,
- /must be null or a WebAssembly function/);
-assertThrows(() => set.call(tbl1, 0, function() {
-}), TypeError, /must be null or a WebAssembly function/);
+ /Argument 1 is invalid for table of type funcref/);
+assertThrows(() => set.call(tbl1, 0, function() {}),
+ TypeError, /Argument 1 is invalid for table of type funcref/);
assertThrows(
() => set.call(tbl1, 0, Math.sin), TypeError,
- /must be null or a WebAssembly function/);
+ /Argument 1 is invalid for table of type funcref/);
assertThrows(
() => set.call(tbl1, {valueOf() { throw Error('hai') }}, null), Error,
'hai');