Skip to content

Commit

Permalink
fix: yield expression should be callable
Browse files Browse the repository at this point in the history
  • Loading branch information
summivox committed Jan 25, 2016
1 parent 9b5bf2b commit 7ff8abe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ast.ls
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,8 @@ class exports.Yield extends Node

show: -> if @op is 'yieldfrom' then 'from' else ''

::delegate <[ isCallable ]> -> yes

compile-node: (o) ->
code = []

Expand Down

0 comments on commit 7ff8abe

Please sign in to comment.