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

remove custom String/Object extensions in favor of ES5

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.4.0-rc0
    • Component/s: JavaScript, Shell
    • None
    • ALL

      There are a few non-standard javascript extensions to String and Object in the shell that can be removed now that we are running v8:

      1) The non-standard Object.keySet() function can be removed in favor of the standardized Object.keys() available in v8.
      2) The non-standard String#rtrim() function can be removed in favor of the standardized String#trimRight() available in v8.
      3) The non-standard String#ltrim() function can be removed in favor of the standardized String#trimLeft() available in v8.

            Assignee:
            Unassigned Unassigned
            Reporter:
            aheckmann Aaron Heckmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: