* 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.
21 lines
239 B
JavaScript
21 lines
239 B
JavaScript
class Foo {
|
|
constructor() {
|
|
new.target;
|
|
}
|
|
}
|
|
|
|
class Bar extends Foo {
|
|
constructor() {
|
|
// This is probably bad...
|
|
new.target;
|
|
super();
|
|
}
|
|
}
|
|
|
|
class Baz extends Foo {
|
|
constructor() {
|
|
super();
|
|
new.target;
|
|
}
|
|
}
|