Merge branch 'master' into harmony-v3.0.10

This commit is contained in:
alexlamsl
2017-05-21 01:36:38 +08:00
6 changed files with 91 additions and 27 deletions

View File

@@ -302,3 +302,25 @@ issue_1437_conditionals: {
}
}
}
issue_512: {
options = {
conditionals: true,
if_return: true,
}
input: {
function a() {
if (b()) {
c();
return;
}
throw e;
}
}
expect: {
function a() {
if (!b()) throw e;
c();
}
}
}