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

instance property "message" of Error objects should be non-enumerable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • None
    • b02
    • generic
    • generic

        ECMA section 15 Standard Built-in ECMAScript Objects says:

        "Every other property described in this clause has the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified."

        Instance property of Error, TypeError, URIError etc. is enumerable in nashorn. Confirmed with other impls. that this property is non-enumerable. (unfortunately this is not covered by test262..)

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

                Created:
                Updated:
                Resolved: