improve handling of lexical scope (#4979)

This commit is contained in:
Alex Lam S.L
2021-05-29 05:48:34 +01:00
committed by GitHub
parent 7fa1dea9d0
commit 260431f4e0
2 changed files with 44 additions and 45 deletions

View File

@@ -727,8 +727,7 @@ side_effects_cascade_1: {
}
expect: {
function f(a, b) {
(a -= 42) < 0 && (a = 0),
b.a = a;
b.a = a = (a -= 42) < 0 ? 0 : a;
}
var m = {}, n = {};
f(13, m),