implement block scoping TDZ

This commit is contained in:
Sebastian McKenzie
2015-01-18 21:26:02 +11:00
parent ecfd5fadc6
commit 7c4701716c
3 changed files with 51 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
qux;
let qux = 456;

View File

@@ -0,0 +1,3 @@
{
"throws": "Temporal dead zone - accessing a variable before it's initialized"
}