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
varx=1;functionfoo(x,y=function(){x=2;}){varx=3;y();assert.equal(x,3);// fails in Traceur}foo();assert.equal(x,1);
As far as I can see, Traceur does not implement an intermediate scope for default parameters. Has the TC39 changed this behavior, or is this simply a missing feature in Traceur?
The text was updated successfully, but these errors were encountered:
Adapted test case from this article:
As far as I can see, Traceur does not implement an intermediate scope for default parameters. Has the TC39 changed this behavior, or is this simply a missing feature in Traceur?
The text was updated successfully, but these errors were encountered: