Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-645

Async rewriter is confused by JS builtins

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: AsyncWriter
    • Labels:
      None
    • Not Needed

      Enterprise replset [direct: primary]> A = Object.getOwnPropertySymbols(Array.prototype)[0].constructor
      [Function: Symbol]
      Enterprise replset [direct: primary]> A
      Uncaught:
      MongoshInternalError: [COMMON-90001] Internal error occurred for copying symbol undefined.
      This is an error inside Mongosh. Please file a bug report for the MONGOSH project here: https://jira.mongodb.org.
      Enterprise replset [direct: primary]> _error.stack
      MongoshInternalError: [COMMON-90001] Internal error occurred for copying symbol undefined.
      This is an error inside Mongosh. Please file a bug report for the MONGOSH project here: https://jira.mongodb.org.
          at SymbolTable.deepCopySymbol (/home/addaleax/src/mongosh/packages/async-rewriter/lib/symbol-table.js:39:19)
          at /home/addaleax/src/mongosh/packages/async-rewriter/lib/symbol-table.js:74:38
          at Array.forEach (<anonymous>)
      Enterprise replset [direct: primary]> A
      [Function: Symbol]
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: