make super behaviour more spec compliant - fixes #32
This commit is contained in:
@@ -5,4 +5,8 @@ class Test extends Foo {
|
||||
super.test();
|
||||
foob(super);
|
||||
}
|
||||
|
||||
test() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,5 +14,8 @@ var Test = function (Foo) {
|
||||
}
|
||||
});
|
||||
Test.__proto__ = Foo;
|
||||
Test.prototype.test = function () {
|
||||
Foo.prototype.test.call(this);
|
||||
};
|
||||
return Test;
|
||||
}(Foo);
|
||||
|
||||
Reference in New Issue
Block a user