fix inline within arrow functions (#2881)

fixes #2874
This commit is contained in:
kzc
2018-02-05 02:01:31 -05:00
committed by Alex Lam S.L
parent 4b3c0652b7
commit 149a569ac8
3 changed files with 139 additions and 3 deletions

View File

@@ -1516,9 +1516,11 @@ issue_2647_2: {
}
expect: {
(function() {
console.log((() => (x = "pass", x.toUpperCase()))());
var x;
})();
function foo(x) {
return x.toUpperCase();
}
console.log((() => foo("pass"))());
}());
}
expect_stdout: "PASS"
node_version: ">=4"