mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Fixed a tiny slicing bug
This commit is contained in:
@@ -486,7 +486,7 @@
|
||||
if (!(arg instanceof SplatNode)) {
|
||||
prev = args[i - 1];
|
||||
if (i === 1 && prev[0] === '[' && prev[prev.length - 1] === ']') {
|
||||
args[i - 1] = '' + (prev.slice(0, prev.length - 2)) + ", " + code + "]";
|
||||
args[i - 1] = '' + (prev.slice(0, prev.length - 1)) + ", " + code + "]";
|
||||
continue;
|
||||
} else if (i > 1 && prev[8] === '[' && prev[prev.length - 2] === ']') {
|
||||
args[i - 1] = '' + (prev.slice(0, prev.length - 2)) + ", " + code + "])";
|
||||
|
||||
Reference in New Issue
Block a user