fix esnext tests to reflect new super behaviour

This commit is contained in:
Sebastian McKenzie
2015-01-23 23:05:24 +11:00
parent 9f435d02f2
commit 86b6904e77
4 changed files with 7 additions and 7 deletions

View File

@@ -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';
}
};

View File

@@ -8,7 +8,7 @@ class Dog extends Animal {
type() { return 'dog'; }
sayHi() {
return super() + ' WOOF!';
return super.sayHi() + ' WOOF!';
}
}

View File

@@ -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);
}
}

View File

@@ -11,9 +11,9 @@ class OtherBase {
class Derived extends Base {
p() {
log += '[Derived]';
super();
super.p();
Derived.prototype.__proto__ = OtherBase.prototype;
super();
super.p();
}
}