Skip to content

Commit

Permalink
Add test case for #46
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetrich committed Oct 21, 2019
1 parent 3495c04 commit 17e5525
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/while with inner break/case-result.js
@@ -0,0 +1 @@
expect(await f()).toBe(1);
13 changes: 13 additions & 0 deletions tests/while with inner break/input.js
@@ -0,0 +1,13 @@
async function() {
let result = 0;
while (true) {
try {
await null;
result = 1;
break;
}
catch {}
result = 2;
}
return result;
}

0 comments on commit 17e5525

Please sign in to comment.