Delete fails over multiple scopes

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 8
    • Component/s: core-libs
    • None
    • b75
    • generic
    • generic

        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);

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

                Created:
                Updated:
                Resolved: