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

Overriding global function defintions does not work in browser-repl

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.6
    • Affects Version/s: None
    • Component/s: Browser Module
    • Labels:
      None
    • 3
    • Not Needed
    • Iteration Johannesburg

       

      Reported by errol.kutan in Slack, re-defining a function in the mongosh CLI works but not in the Compass shell:

      Atlas [primary] test> function testFunction() {
      ...     console.log("Hello world")
      ... }
      [Function: testFunction]
      Atlas [primary] test> function testFunction() {
      ...     console.log("Hello world2")
      ... }
      [Function: testFunction]
      Atlas [primary] test> testFunction()
      Hello world2Atlas atlas-jt9dqp-shard-0 [primary] test> 
       

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

              Created:
              Updated:
              Resolved:

                Error rendering 'slack.nextup.jira:slack-integration-plus'. Please contact your Jira administrators.