fix esnext tests to reflect new super behaviour
This commit is contained in:
@@ -12,11 +12,11 @@ var Dog = class extends Animal {
|
||||
type() { return 'dog'; }
|
||||
|
||||
sayHi() {
|
||||
return super() + ' WOOF!';
|
||||
return super.sayHi() + ' WOOF!';
|
||||
}
|
||||
|
||||
static getName() {
|
||||
return super() + '/Dog';
|
||||
return super.getName() + '/Dog';
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ class Dog extends Animal {
|
||||
type() { return 'dog'; }
|
||||
|
||||
sayHi() {
|
||||
return super() + ' WOOF!';
|
||||
return super.sayHi() + ' WOOF!';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@ class Tripler {
|
||||
}
|
||||
|
||||
static toString() {
|
||||
return '3' + super() + '3';
|
||||
return '3' + super.toString() + '3';
|
||||
}
|
||||
}
|
||||
|
||||
class MegaTripler extends Tripler {
|
||||
static triple(n=1) {
|
||||
return super(n) * super(n);
|
||||
return super.triple(n) * super.triple(n);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ class OtherBase {
|
||||
class Derived extends Base {
|
||||
p() {
|
||||
log += '[Derived]';
|
||||
super();
|
||||
super.p();
|
||||
Derived.prototype.__proto__ = OtherBase.prototype;
|
||||
super();
|
||||
super.p();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user