mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
15 lines
275 B
JavaScript
15 lines
275 B
JavaScript
function Component() {
|
|
a; // invalid
|
|
if (true) {
|
|
a; // invalid
|
|
}
|
|
for (;;) {
|
|
a; // invalid
|
|
}
|
|
function foo() {
|
|
a; // will be a runtime tdz error but we don't detect that statically
|
|
}
|
|
foo(); // above is a runtime tdz error bc of this call
|
|
let a;
|
|
}
|