Skip to content

Commit

Permalink
support node.js 10 and 8
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jun 4, 2018
1 parent 5ecf749 commit 591521b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/cases/wasm/js-incompatible-type/index.js
@@ -1,15 +1,17 @@
const errorRegex = /wasm function signature contains illegal type|invalid type/;

it("should disallow exporting a func signature with result i64", function() {
return import("./export-i64-result").then(({a}) => {
expect(() => a()).toThrow(/invalid type/);
expect(() => a()).toThrow(errorRegex);
});
});

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

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

0 comments on commit 591521b

Please sign in to comment.