Skip to content

Commit

Permalink
fix: avoid revisiting tdzThis handler
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Nov 3, 2020
1 parent 04cba55 commit 092c2ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/babel-plugin-transform-block-scoping/src/index.js
Expand Up @@ -42,6 +42,7 @@ export default declare((api, opts) => {
}

node._blockHoist = 2;
node._tdzThis = false;

if (path.isCompletionRecord()) {
// ensure we don't break completion record semantics by returning
Expand Down

0 comments on commit 092c2ba

Please sign in to comment.