WSL should have more tests of type checking failures
[WebKit-https.git] / JSTests / es6 / block-level_function_declaration.js
1 function test() {
2
3 'use strict';
4 function f() { return 1; }
5 {
6   function f() { return 2; }
7 }
8 return f() === 1;
9   
10 }
11
12 if (!test())
13     throw new Error("Test failed");
14