Skip to content

Renaming local variable in Javascript crashes with "Maximum call stack size exceeded" #1991

Closed

Description

See this handy gif:

visual-studio-fail

Here's a snippy snip of the last line of the developer console:

RangeError: Maximum call stack size exceeded: RangeError: Maximum call stack size exceeded
    at o (typescriptServices.js:10)
    at n (typescriptServices.js:10)
    at r (typescriptServices.js:10)
    at o (typescriptServices.js:10)
    at n (typescriptServices.js:10)
    at r (typescriptServices.js:10)
    at o (typescriptServices.js:10)
    at n (typescriptServices.js:10)
    at r (typescriptServices.js:10)
    at o (typescriptServices.js:10)e.doShow @ workbench.main.js:63
workbench.main.js:16 Main Thread sent to worker the following message:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19
workbench.main.js:16 Object {type: "threadService", payload: Array[3]}
workbench.main.js:16 And the worker replied with an error:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19
workbench.main.js:16 Object {stack: "RangeError: Maximum call stack size exceeded↵    a…ript/common/js/importAndExportRewriter.js:4:3903)", message: "RangeError: Maximum call stack size exceeded"}
workbench.main.js:91 RangeError: Maximum call stack size exceeded: RangeError: Maximum call stack size exceeded
    at importAndExportRewriter.js:4
    at r (typescriptServices.js:10)
    at Object.o [as forEachChild] (typescriptServices.js:10)
    at e._visitNode (importAndExportRewriter.js:4)
    at e.visitBinaryExpression (importAndExportRewriter.js:4)
    at importAndExportRewriter.js:4
    at r (typescriptServices.js:10)
    at Object.o [as forEachChild] (typescriptServices.js:10)
    at e._visitNode (importAndExportRewriter.js:4)
    at e.visitBinaryExpression (importAndExportRewriter.js:4)

...?

Activity

  1. added
    bug
    javascript
    on Jan 14, 2016
  2. egamma commented on Jan 18, 2016

    @egamma
    Member

    Can you attach the single file that produces the error?

  3. egamma commented on Jan 20, 2016

    @egamma
    Member

    Closing as duplicate of #2054

  4. added
    *duplicate
    on Jul 1, 2016
  5. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicatebugjavascript

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions