WSL should have more tests of type checking failures
[WebKit-https.git] / JSTests / es6 / const_is_block-scoped.js
1 function test() {
2
3 const bar = 123;
4 { const bar = 456; }
5 return bar === 123;
6       
7 }
8
9 if (!test())
10     throw new Error("Test failed");
11