Updating Underscore to 1.1.0, fixing a hasOwnProperty glitch in Scope, and a double-semicolon bug in ParentheticalNode.

This commit is contained in:
Jeremy Ashkenas
2010-08-21 08:30:22 -04:00
parent 6ed33fcc6d
commit 87693d84cb
6 changed files with 83 additions and 293 deletions

View File

@@ -1301,6 +1301,7 @@ exports.ParentheticalNode = class ParentheticalNode extends BaseNode
top = del o, 'top'
@expression.parenthetical = true
code = @expression.compile(o)
return code if top and @expression.isPureStatement o
if @parenthetical or @isStatement o
return if top then @tab + code + ';' else code
"(#{code})"