mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Codegen: Do not subtract 0 in arguments to rest array loop
This commit is contained in:
1 parent
52ec508e27
commit
3e52f3dfe9
96 files changed
+170
-168
No files matched your search
@@ -1306,7 +1306,9 @@ namespace ts {
|
||||
createAssignment(
|
||||
createElementAccess(
|
||||
expressionName,
|
||||
createSubtract(temp, createLiteral(restIndex))
|
||||
restIndex === 0
|
||||
? temp
|
||||
: createSubtract(temp, createLiteral(restIndex))
|
||||
),
|
||||
createElementAccess(createIdentifier("arguments"), temp)
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user