support for non-Identifier/MemberExpression class super

This commit is contained in:
Sebastian McKenzie
2014-10-10 10:57:35 +11:00
parent f82909f4ca
commit 9c5262baab
4 changed files with 34 additions and 11 deletions

View File

@@ -0,0 +1,3 @@
class Q extends function() {} {
}

View File

@@ -0,0 +1,14 @@
var Q = function(_ref) {
function Q() {}
Q.prototype = Object.create(_ref.prototype, {
constructor: {
value: Q,
enumerable: false,
writable: true,
configurable: true
}
});
return Q;
}(function() {});