Closed letmaik closed 8 years ago
Whenever I extend a class and try to define an arrow function like below, the output is broken:
class X extends Error { constructor() { super() this.foo = () => {this.bar()} } }
becomes:
X = function($__super) { function X() { var $__1; $traceurRuntime.superConstructor(X).call(this); this.foo = $__1 = this, function() { $__1.bar(); }; } return ($traceurRuntime.createClass)(X, {}, {}, $__super); }(Error);
I use 0.0.91.
Whenever I extend a class and try to define an arrow function like below, the output is broken:
becomes:
I use 0.0.91.