15 lines
237 B
JavaScript
15 lines
237 B
JavaScript
class Foo {
|
|
constructor() {
|
|
var _newtarget = this.constructor;
|
|
|
|
this.test = function _target() {
|
|
this instanceof _target ? this.constructor : void 0;
|
|
};
|
|
|
|
this.test2 = function () {
|
|
_newtarget;
|
|
};
|
|
}
|
|
|
|
}
|