mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
adding paren wrappers for property accesses directly on object literals
This commit is contained in:
@@ -320,6 +320,9 @@
|
||||
only = del(o, 'only_first');
|
||||
props = only ? this.properties.slice(0, this.properties.length - 1) : this.properties;
|
||||
baseline = this.base.compile(o);
|
||||
if (this.base instanceof ObjectNode && this.has_properties()) {
|
||||
baseline = '(' + baseline + ')';
|
||||
}
|
||||
parts = [baseline];
|
||||
__a = props;
|
||||
for (__b = 0; __b < __a.length; __b++) {
|
||||
|
||||
Reference in New Issue
Block a user