babel / babel/babel

Unoptimal TDZ compliation

Open
#16,004 0 comments 0 reactions 0 assignees View on GitHub
Spec: TDZ
Dominant language
TypeScript
Stars
44k
Forks
6k
Avg merge
5d 15h
Merged PRs (30d)
23

Description

```js
{
let x;
function foo() { x; }
escape(foo);
}
```

We do not need the check here, similarly to how we do not emit it for this code:
```js
{
let x;
function foo() { x; }
foo();
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.