implement block scoping TDZ
This commit is contained in:
2
test/fixtures/transformation/es6-let-scoping/temporal-dead-zone/actual.js
vendored
Normal file
2
test/fixtures/transformation/es6-let-scoping/temporal-dead-zone/actual.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
qux;
|
||||
let qux = 456;
|
||||
3
test/fixtures/transformation/es6-let-scoping/temporal-dead-zone/options.json
vendored
Normal file
3
test/fixtures/transformation/es6-let-scoping/temporal-dead-zone/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Temporal dead zone - accessing a variable before it's initialized"
|
||||
}
|
||||
Reference in New Issue
Block a user