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:
UltCombo commentedSep 24, 2014
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: