| Index: test/mjsunit/wasm/ffi-error.js
|
| diff --git a/test/mjsunit/wasm/ffi-error.js b/test/mjsunit/wasm/ffi-error.js
|
| index b6474c6fed5a8cc58605af315dd0f34a672095e9..81dc47806e767f00a8f3bdec9230deae2e3fc05d 100644
|
| --- a/test/mjsunit/wasm/ffi-error.js
|
| +++ b/test/mjsunit/wasm/ffi-error.js
|
| @@ -59,3 +59,22 @@ assertThrows(function() {
|
| ffi.fun = 0;
|
| testCallFFI(ffi);
|
| });
|
| +
|
| +
|
| +(function I64InSignatureThrows() {
|
| + var builder = new WasmModuleBuilder();
|
| +
|
| + builder.addMemory(1, 1, true);
|
| + builder.addFunction("function_with_invalid_signature", kSig_l_ll)
|
| + .addBody([ // --
|
| + kExprGetLocal, 0, // --
|
| + kExprGetLocal, 1, // --
|
| + kExprI64Sub]) // --
|
| + .exportFunc()
|
| +
|
| + var module = builder.instantiate();
|
| +
|
| + assertThrows(function() {
|
| + module.exports.function_with_invalid_signature(33, 88);
|
| + }, TypeError);
|
| +})();
|
|
|