You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
S5 desugars compound assignment (e1 += e2 etc.) to e1 = e1 + e2, which is invalid when the evaluation of e1 has side effects. Here is an example program that exhibits the problem:
var o = {x: 0};
function f() { o.x++; return o };
(f()).x += 1
Complying implementations should give o.x == 2. S5 gives 3, because under the current desugaring, f() is called twice.
The text was updated successfully, but these errors were encountered:
S5 desugars compound assignment (e1 += e2 etc.) to e1 = e1 + e2, which is invalid when the evaluation of e1 has side effects. Here is an example program that exhibits the problem:
Complying implementations should give o.x == 2. S5 gives 3, because under the current desugaring, f() is called twice.
The text was updated successfully, but these errors were encountered: