1
0
Fork 0
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:
Michael Ficarra 2011-09-22 02:14:07 -04:00
parent 3b5c889040
commit 08762a101c
3 changed files with 22 additions and 7 deletions

View file

@ -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 {