Skip to content
This repository has been archived by the owner on Oct 27, 2017. It is now read-only.

Commit

Permalink
fix kind for getters/setters
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Dec 9, 2015
1 parent f3e6403 commit f2a6a93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/toAST.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ var astTransformVisitor = {

if (path.isObjectMethod()) {
node.type = 'Property';
node.kind = 'init';
if (node.kind === 'method') {
node.kind = 'init';
}
}

delete node.body;
Expand Down

0 comments on commit f2a6a93

Please sign in to comment.