Skip to content

[Bug] Spread operator in function call throws error #5083

@straakaa

Description

@straakaa

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

https://microsoft.github.io/monaco-editor/playground.html?source=v0.54.0#XQAAAAJ0AAAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscjXF1UThlJFKn-tYnoj-tRCeoD7JOx0kBJihMAslMpDntJlcgrIc11Ug6mTxF2wxGuwZa3_vb2nAA

Monaco Editor Playground Code

const array = [1, 2, 3];  
console.log(1,...array)

Reproduction Steps

  1. Type console.log(1,...

Actual (Problematic) Behavior

editor.api-i0YVFWkl.js:3 Uncaught Error: Debug Failure. Expected 1 < 1.

Error: Debug Failure. Expected 1 < 1.
at mwe (ts.worker-C4E4vgbE.js:373:149379)
at _we (ts.worker-C4E4vgbE.js:373:149696)
at bot (ts.worker-C4E4vgbE.js:373:150715)
at Pot (ts.worker-C4E4vgbE.js:373:153366)
at Object.mot (ts.worker-C4E4vgbE.js:373:147510)
at Object.Bt [as getSignatureHelpItems] (ts.worker-C4E4vgbE.js:368:69887)
at wx.getSignatureHelpItems (ts.worker-C4E4vgbE.js:51330:3324)
at QN.$fmr (ts.worker-C4E4vgbE.js:26:16111)
at c5e._handleMessage (ts.worker-C4E4vgbE.js:7:36768)
at Object.handleMessage (ts.worker-C4E4vgbE.js:7:36263)
at mwe (ts.worker-C4E4vgbE.js:373:149379)
at _we (ts.worker-C4E4vgbE.js:373:149696)
at bot (ts.worker-C4E4vgbE.js:373:150715)
at Pot (ts.worker-C4E4vgbE.js:373:153366)
at Object.mot (ts.worker-C4E4vgbE.js:373:147510)
at Object.Bt [as getSignatureHelpItems] (ts.worker-C4E4vgbE.js:368:69887)
at wx.getSignatureHelpItems (ts.worker-C4E4vgbE.js:51330:3324)
at QN.$fmr (ts.worker-C4E4vgbE.js:26:16111)
at c5e._handleMessage (ts.worker-C4E4vgbE.js:7:36768)
at Object.handleMessage (ts.worker-C4E4vgbE.js:7:36263)

Expected Behavior

No error will occur

Additional Context

20251105-0703-43.8575536.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions