Skip to content

Commit 591521b

Browse files
committed
support node.js 10 and 8
1 parent 5ecf749 commit 591521b

File tree

1 file changed

+5
-3
lines changed
  • test/cases/wasm/js-incompatible-type

1 file changed

+5
-3
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
const errorRegex = /wasm function signature contains illegal type|invalid type/;
2+
13
it("should disallow exporting a func signature with result i64", function() {
24
return import("./export-i64-result").then(({a}) => {
3-
expect(() => a()).toThrow(/invalid type/);
5+
expect(() => a()).toThrow(errorRegex);
46
});
57
});
68

79
it("should disallow exporting a func signature with param i64", function() {
810
return import("./export-i64-param").then(({a}) => {
9-
expect(() => a()).toThrow(/invalid type/);
11+
expect(() => a()).toThrow(errorRegex);
1012
});
1113
});
1214

1315
it("should disallow importing a value type of i64", function() {
14-
return expect(import("./import-i64.wat")).rejects.toThrow(/invalid type/);
16+
return expect(import("./import-i64.wat")).rejects.toThrow(errorRegex);
1517
});

0 commit comments

Comments
 (0)