Skip to content

Commit 2b0271b

Browse files
committed
Fixed splice array trim
1 parent 8942097 commit 2b0271b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lualib/ArraySplice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function __TS__ArraySplice<T>(list: T[], start: number, deleteCount: number, ...
8484
}
8585

8686
// 19.
87-
for (let k = list.length - 1; k > len - actualDeleteCount + itemCount; k--) {
87+
for (let k = list.length - 1; k >= len - actualDeleteCount + itemCount; k--) {
8888
list[k] = undefined;
8989
}
9090

0 commit comments

Comments
 (0)