mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
Fix #2953. Method calls on splice endpoints
This commit is contained in:
@@ -1746,7 +1746,7 @@
|
||||
fromDecl = fromRef = '0';
|
||||
}
|
||||
if (to) {
|
||||
if ((from != null ? from.isSimpleNumber() : void 0) && to.isSimpleNumber()) {
|
||||
if (from && from instanceof Value && (from != null ? from.isSimpleNumber() : void 0) && to instanceof Value && to.isSimpleNumber()) {
|
||||
to = +to.compile(o) - +fromRef;
|
||||
if (!exclusive) {
|
||||
to += 1;
|
||||
|
||||
Reference in New Issue
Block a user