Skip to content

Commit

Permalink
fix splat condition to catch mutliple splats/expansions
Browse files Browse the repository at this point in the history
  • Loading branch information
Zdenko Vujasinovic committed Mar 23, 2017
1 parent e7e53dd commit 6ad726c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/coffeescript/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/nodes.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ exports.Assign = class Assign extends Base
name = obj.name.unwrap().value
obj = obj.unwrap()
# catch splat variable
if isObject
if hasSplat
splatKey = obj
else
val = "#{olen} <= #{vvarText}.length ? #{ utility 'slice', o }.call(#{vvarText}, #{i}"
Expand Down

0 comments on commit 6ad726c

Please sign in to comment.