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

@@ -1,5 +1,6 @@
var Test = function (Foo) {
function Test() {
Foo.call(this, arguments);
}
Test.prototype = Object.create(Foo.prototype, {
constructor: {