Overriding global function defintions does not work in browser-repl

XMLWordPrintableJSON

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

       

      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
              Reporter:
              Anna Henningsen
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: