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

remove custom String/Object extensions in favor of ES5

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: