Using static methods and getters produce var-declarations twice
Given this:
class Foo {
static get bar() { return 'baz' }
}
Output:
var Foo = var staticAccessors = { bar: {} };
function Foo () {};
staticAccessors.bar.get = function() { return 'baz' };
Object.defineProperties( Foo, staticAccessors );
Where var Foo = var
is not expected right?