Index: test/mjsunit/wasm/ffi-error.js |
diff --git a/test/mjsunit/wasm/ffi-error.js b/test/mjsunit/wasm/ffi-error.js |
index aca5123d3bec699edd950cb0861f83bd02cb78f8..100f501af4817fa1386c49b60a7d203ebfdea873 100644 |
--- a/test/mjsunit/wasm/ffi-error.js |
+++ b/test/mjsunit/wasm/ffi-error.js |
@@ -79,6 +79,23 @@ assertThrows(function() { |
}, TypeError); |
})(); |
+(function I64ParamsInSignatureThrows() { |
+ var builder = new WasmModuleBuilder(); |
+ |
+ builder.addMemory(1, 1, true); |
+ builder.addFunction("function_with_invalid_signature", kSig_i_l) |
+ .addBody([ |
+ kExprGetLocal, 0, |
+ kExprI32ConvertI64 |
+ ]) |
+ .exportFunc() |
+ |
+ var module = builder.instantiate(); |
+ |
+ assertThrows(function() { |
+ module.exports.function_with_invalid_signature(33); |
+ }, TypeError); |
+})(); |
(function I64JSImportThrows() { |
var builder = new WasmModuleBuilder(); |