support static property on ClassMethods - fixes #28

This commit is contained in:
Sebastian McKenzie
2014-10-10 13:57:08 +11:00
parent 3cb8866fcc
commit 3e34bbe722
5 changed files with 54 additions and 5 deletions

13
test/fixtures/classes/static/actual.js vendored Normal file
View File

@@ -0,0 +1,13 @@
class A {
static a() {
}
static get b(){
}
static set b(b){
}
}

View File

@@ -0,0 +1,14 @@
var A = function() {
function A() {}
A.a = function() {};
Object.defineProperties(A, {
b: {
get: function() {},
set: function(b) {}
}
});
return A;
}();