Skip to content

Commit

Permalink
fixes jashkenas#1416: don't omit one 'new' when compiling 'new new'
Browse files Browse the repository at this point in the history
  • Loading branch information
thejh committed Jun 20, 2011
1 parent 11f2cd4 commit f0c22f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/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 @@ -1236,7 +1236,7 @@ exports.Op = class Op extends Base
call.do = yes
return call
if op is 'new'
return first.newInstance() if first instanceof Call and not first.do
return first.newInstance() if first instanceof Call and not first.do and not first.isNew
first = new Parens first if first instanceof Code and first.bound or first.do
@operator = CONVERSIONS[op] or op
@first = first
Expand Down

0 comments on commit f0c22f3

Please sign in to comment.