Skip to content

Commit 8fb5c1b

Browse files
Make it clearer that we're adding a property to an object
1 parent a8273bf commit 8fb5c1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nodes.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ exports.Base = class Base
288288
# Mark AST nodes that correspond to expressions that (implicitly) return.
289289
# We can’t do this as part of `astNode` because we need to assemble child
290290
# nodes first before marking the parent being returned.
291-
astNode.returns = yes if @astNode? and @canBeReturned
291+
if @astNode? and @canBeReturned
292+
Object.assign astNode, {returns: yes}
292293
astNode
293294

294295
astInitialize: (o, level) ->

0 commit comments

Comments
 (0)