Closed johsin18 closed 9 years ago
In Traceur 0.89, the following code
this._observer = { onDChanged: (uuid, d) => { if (this.downStreamObserver) this.downStreamObserver.onDChanged(uuid, d); this.onChanged(); },
was compiled to this working code
this._observer = { onDChanged: ($__5 = this, function(uuid, d) { if ($__5.downStreamObserver) $__5.downStreamObserver.onDChanged(uuid, d); $__5.onChanged(); }),
However, starting from 0.90, some extra parentheses are gone...
this._observer = { onDChanged: $__5 = this, function(uuid, d) { if ($__5.downStreamObserver) $__5.downStreamObserver.onDChanged(uuid, d); $__5.onChanged(); },
which completely breaks the code, as onDChanged is basically set to "this" instead of the function intended.
Sorry about the regression :'(
In Traceur 0.89, the following code
was compiled to this working code
However, starting from 0.90, some extra parentheses are gone...
which completely breaks the code, as onDChanged is basically set to "this" instead of the function intended.