fix static member expression calls, make classes more spec-compliant

This commit is contained in:
Sebastian McKenzie
2014-10-12 13:39:10 +11:00
parent 141ea98b89
commit bb697c6436
34 changed files with 158 additions and 128 deletions

View File

@@ -3,4 +3,8 @@ class Test extends Foo {
super.test.whatever();
super.test();
}
static test() {
return super.wow();
}
}

View File

@@ -1,16 +1,25 @@
var Test = function(Foo) {
function Test() {
Foo.prototype.test.whatever();
Foo.prototype.test.call(this);
var Test = function Test() {
Foo.prototype.test.whatever();
Foo.prototype.test.call(this);
};
Test.prototype = Object.create(Foo.prototype, {
constructor: {
value: Test,
enumerable: false,
writable: true,
configurable: true
}
Test.prototype = Object.create(Foo.prototype, {
constructor: {
value: Test,
enumerable: false,
writable: true,
configurable: true
}
});
Test.__proto__ = Foo;
return Test;
});
Test.__proto__ = Foo;
Object.defineProperties(Test, {
test: {
writeable: true,
value: function() {
return Foo.wow.call(this);
}
}
});
return Test;
}(Foo);