Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8011705 Issues with JSON functions from nashorn-dev alias
  3. JDK-8015354

JSON.parse should not use [[Put]] but use [[DefineOwnProperty]] instead

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P4
    • 8
    • 8
    • core-libs
    • None
    • b93
    • generic
    • generic
    • Verified

    Description


      Object.defineProperty(Object.prototype,"",{set:
      function(v){print("called set")}})
      JSON.parse('{}',function(){})
      => should not call the setter (use [[DefineOwnProperty]] instead of [[Put]])

      Object.defineProperty(Object.prototype,"foo",{set:
      function(v){print("called set")}})
      JSON.parse('{"foo": 1}')
      => should not call the setter (use [[DefineOwnProperty]] instead of [[Put]])

      Attachments

        Activity

          People

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: