Permalink
Browse files

handle an unhandled case, with super() and no args.

  • Loading branch information...
1 parent b6086b1 commit 6f4c8856e8b6596a7f095f454c833001c78f40ee @maxtaco committed Jan 10, 2012
Showing with 4 additions and 2 deletions.
  1. +3 −1 lib/coffee-script/nodes.js
  2. +1 −1 src/nodes.coffee

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -908,7 +908,7 @@ exports.Call = class Call extends Base
tameCpsRotate: ->
for a,i in @args
@args[i] = v if (v = @tameCpsExprRotate a)
- @variable = v if (v = @tameCpsExprRotate @variable)
+ @variable = v if (@variable and v = @tameCpsExprRotate @variable)
# Soaked chained invocations unfold into if/else ternary structures.
unfoldSoak: (o) ->

0 comments on commit 6f4c885

Please sign in to comment.