mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
adding paren wrappers for property accesses directly on object literals
This commit is contained in:
@@ -257,6 +257,7 @@ ValueNode: exports.ValueNode: inherit Node, {
|
||||
only: del(o, 'only_first')
|
||||
props: if only then @properties[0...@properties.length - 1] else @properties
|
||||
baseline: @base.compile o
|
||||
baseline: '(' + baseline + ')' if @base instanceof ObjectNode and @has_properties()
|
||||
parts: [baseline]
|
||||
|
||||
for prop in props
|
||||
|
||||
Reference in New Issue
Block a user