Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8057173

Treat POJOs as Object.seal()'d JS objects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • None

      We need to treat POJOs as if they were JS objects that had Object.seal() invoked on them. Specifically, they're not extensible and their properties are not configurable. In terms of observable behavior, we should be throwing a TypeError when attempting to set a non-existent property on a POJO when in strict mode.

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: