fix block-scoped function for ES6

fixes #1903
This commit is contained in:
alexlamsl
2017-05-27 19:13:09 +08:00
parent aa835eb0f6
commit 94d2aeee89
4 changed files with 23 additions and 17 deletions

View File

@@ -134,9 +134,8 @@ defun_hoist_funs: {
expect: {
function e() {
function f() {}
function g() {}
function h() {}
!window;
if (window) function g() {}
}
}
}