make super behaviour more spec compliant - fixes #32

This commit is contained in:
Sebastian McKenzie
2014-10-10 15:49:28 +11:00
parent 35bb0bc71d
commit fb67ab9b5d
15 changed files with 132 additions and 33 deletions

View File

@@ -5,4 +5,8 @@ class Test extends Foo {
super.test();
foob(super);
}
test() {
super();
}
}

View File

@@ -14,5 +14,8 @@ var Test = function (Foo) {
}
});
Test.__proto__ = Foo;
Test.prototype.test = function () {
Foo.prototype.test.call(this);
};
return Test;
}(Foo);