We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2df528 commit 99bff90Copy full SHA for 99bff90
src/BabelPlugin.js
@@ -391,7 +391,7 @@ function Plugin(babel) {
391
if (isTailCall && (tryStack.length === 0 || finalStack.length > 0)) {
392
if (tryStack.length > 0) {
393
const inTryCatch = tryStack[tryStack.length - 1];
394
- if (path.getFunctionParent().node !== inTryCatch.function.node || finalStack.length > 0) {
+ if (path.getFunctionParent().node === inTryCatch.function.node && finalStack.length > 0) {
395
const inFinalizer = finalStack[finalStack.length - 1];
396
if ("finalizer" in inTryCatch.node && inFinalizer === inTryCatch.node.finalizer) {
397
path.node.expressions[0].argument.arguments.push(t.booleanLiteral(true));
0 commit comments