mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
fixes #1723: operator precedence in unbounded splice compilation
This commit is contained in:
parent
3b5c889040
commit
08762a101c
3 changed files with 22 additions and 7 deletions
|
@ -1402,7 +1402,7 @@
|
|||
to = +to.compile(o) - +fromRef;
|
||||
if (!exclusive) to += 1;
|
||||
} else {
|
||||
to = to.compile(o) + ' - ' + fromRef;
|
||||
to = to.compile(o, LEVEL_ACCESS) + ' - ' + fromRef;
|
||||
if (!exclusive) to += ' + 1';
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue