Merge branch 'master' into harmony-v3.0.13

This commit is contained in:
alexlamsl
2017-05-29 10:58:05 +08:00
10 changed files with 141 additions and 88 deletions

View File

@@ -139,3 +139,25 @@ defun_hoist_funs: {
}
}
}
defun_else_if_return: {
options = {
hoist_funs: false,
if_return: true,
}
input: {
function e() {
function f() {}
if (window) function g() {}
else return;
function h() {}
}
}
expect: {
function e() {
function f() {}
if (window) function g() {}
function h() {}
}
}
}