* Add new.target transform * Catch new.target under only an arrow function * More unsupported reflect.construct cases * Fix node 4 test * Do not transform Methods * More tests * Properly setup function inheritance test * Tests tests tests * Fix ES6 class's new.target * Remove expected output thats supposed to throw.
11 lines
262 B
JavaScript
11 lines
262 B
JavaScript
function Foo() {
|
|
this instanceof Foo ? this.constructor : void 0;
|
|
}
|
|
|
|
Foo.prototype.test = function _target() {
|
|
this instanceof _target ? this.constructor : void 0;
|
|
};
|
|
|
|
var Bar = function _target2() {
|
|
this instanceof _target2 ? this.constructor : void 0;
|
|
}; |