Skip to content

Commit

Permalink
Relax control flow error message check in vm.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Sep 30, 2024
1 parent d1079dd commit ad28088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/npm-packages/ruby-wasm-wasi/test/vm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ describe("RubyVM", () => {
}).toThrowError("unexpected return");
expect(() => {
vm.eval(`next`);
}).toThrowError("Can't escape from eval with next");
}).toThrowError("SyntaxError");
expect(() => {
vm.eval(`redo`);
}).toThrowError("Can't escape from eval with redo");
}).toThrowError("SyntaxError");
});

test("method call with args", async () => {
Expand Down

0 comments on commit ad28088

Please sign in to comment.