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

Delete fails over multiple scopes

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 8
    • 9
    • core-libs
    • None
    • b75
    • generic
    • generic

    Backports

      Description

        The following code currently does not delete global property "p". It prints "number" instead of "undefined".

        p = 3;

        function f() {
            delete p;
            var x; // force creation of scope
            function b() { print(x); }
        }

        f();
        print(typeof p);

        Attachments

          Issue Links

            Activity

              People

                hannesw Hannes Wallnoefer
                hannesw Hannes Wallnoefer
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: