From 092c2ba606393a5d11992e35c8e08473db80b57f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Tue, 3 Nov 2020 18:15:10 -0500 Subject: [PATCH] fix: avoid revisiting tdzThis handler --- packages/babel-plugin-transform-block-scoping/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/babel-plugin-transform-block-scoping/src/index.js b/packages/babel-plugin-transform-block-scoping/src/index.js index 3a9576a525fe..64dfeb2d0cd0 100644 --- a/packages/babel-plugin-transform-block-scoping/src/index.js +++ b/packages/babel-plugin-transform-block-scoping/src/index.js @@ -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