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

Create a test which enumerates the objects available in server side JS environments

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible

      Description

      We know the current list of available JS objects in the server side environment. These should change very infrequently. A JS test which called Object.getOwnPropertyNames(this) and Object.getOwnPropertySymbols(this), and asserted the list matched that known today, would ensure that new ones were not added by accident.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              charlie.swanson Charlie Swanson
              Reporter:
              spencer.jackson Spencer Jackson
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: