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

When a keyword is used as object property name, the property can not be deleted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None
    • b108
    • generic
    • generic

      In the following testcase, the property can't be deleted:
      var obj = {
          default: "toto"
      };
      delete obj.default;
      console.log(obj.default);

            sundar Sundararajan Athijegannathan
            jfdenise Jean-Francois Denise (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: