Skip to content

Commit

Permalink
style(xsnap): no need for for-await
Browse files Browse the repository at this point in the history
Co-authored-by: Michael FIG <[email protected]>
  • Loading branch information
dckc and michaelfig committed Feb 24, 2021
1 parent 8ffbaa6 commit 55bdaf7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/xsnap/test/test-xsnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,10 @@ test('heap exhaustion: orderly fail-stop', async t => {
stuff = stuff + stuff;
}
`;
for await (const debug of [false, true]) {
for (const debug of [false, true]) {
const vat = xsnap({ ...xsnapOptions, meteringLimit: 0, debug });
t.teardown(() => vat.terminate());
// eslint-disable-next-line no-await-in-loop
await t.throwsAsync(vat.evaluate(grow));
}
});

0 comments on commit 55bdaf7

Please sign in to comment.