mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
added the 'delete' operator
This commit is contained in:
@@ -252,7 +252,8 @@ class OpNode < Node
|
||||
end
|
||||
|
||||
def compile_unary(indent, scope)
|
||||
"#{@operator}#{@first.compile(indent, scope)}"
|
||||
space = @operator == 'delete' ? ' ' : ''
|
||||
"#{@operator}#{space}#{@first.compile(indent, scope)}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user