Open ChadKillingsworth opened 7 years ago
@justinfagnani want to take a stab at fixing this? I think we just need to treat this the same as a computed-property getter (get ['foobar']() { return 'foobar'; }
) which means the declaration we output will look like Foo.prototype['foobar']
instead of Foo.prototype.foobar
.
This all happens in visitComputedPropInClass
(which looks like it's misnamed and should be renamed to visitComputedPropOrGetterOrSetterInClass
and perhaps refactored into smaller methods)
The transpiled getter for
foobar
is not properly quoted.