Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-78597

Passthroughs must only evaluate in strict mode

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Server Serverless 2023-07-10

    Description

      In the process of migrating some override methods to modules, I discovered that a number of passthroughs are passing eval as a variable to the global test runner scope instead of evaluating the script in the context of the global scope. For example:

      This is because strict mode is automatically enabled when async/await or modules are used in a script. These additional rules must be obeyed, and should be fixed in this ticket:

      • can't assign to an unknown value (must define it using var or member assignment to globalThis)

      Attachments

        Activity

          People

            matt.broadstone@mongodb.com Matt Broadstone
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: