Skip to content

Commit 7466ac1

Browse files
author
Benjamin Lichtman
committed
[WIP] add test
1 parent 8c9e866 commit 7466ac1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/testRunner/unittests/convertToAsyncFunction.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,11 @@ const [#|foo|] = function () {
11941194
}
11951195
`);
11961196

1197+
_testConvertToAsyncFunction("convertToAsyncFunction_catchBlockUniqueParams", `
1198+
function [#|f|]() {
1199+
return Promise.resolve().then(x => 1).catch(x => "a").then(x => !!x);
1200+
}
1201+
`);
11971202

11981203
});
11991204

0 commit comments

Comments
 (0)