Skip to content

Commit

Permalink
fix accidental reuse of 'expression' property
Browse files Browse the repository at this point in the history
which is sometimes a member node and other
times (ArrowFunctionExpression) just a flag.
  • Loading branch information
ef4 committed May 25, 2015
1 parent 1583ff2 commit ceccb92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/js-nodes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/js-nodes.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ createNode = (type, props) ->
]

for property in ['leadingComments', 'raw', 'expression', 'generator']
if this[property]?
if this[property]? && property not in @childNodes
obj[property] = this[property]
obj

Expand Down

0 comments on commit ceccb92

Please sign in to comment.