Skip to content

Commit

Permalink
#1643: Remove superfluous assignable check from destructured Splats
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldalewis committed Sep 9, 2011
1 parent 7d4e693 commit f0e276c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/nodes.coffee
Expand Up @@ -1007,8 +1007,6 @@ exports.Assign = class Assign extends Base
else
idx = if obj.this then obj.properties[0].name else obj
if not splat and obj instanceof Splat
unless obj.name.unwrapAll().isAssignable()
throw SyntaxError "\"#{ obj.name.compile(o) }\" cannot be assigned."
name = obj.name.unwrap().value
obj = obj.unwrap()
val = "#{olen} <= #{vvar}.length ? #{ utility 'slice' }.call(#{vvar}, #{i}"
Expand Down

0 comments on commit f0e276c

Please sign in to comment.