summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-551763-0.js
blob: 6aeceac2326ac6867a2973e7f51059b5e813deb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(function() {
    var o = {'arguments': 42};
    with (o) { // Definitely forces heavyweight.
        // Note syntax is not a property access.
        reportCompare(delete arguments, true,
                      "arguments property deletion within with block");
    }
    reportCompare('arguments' in o, false,
                  "property deletion observable");
})();

(function() {
    var o = {'arguments': 42};
    delete o.arguments;
    reportCompare('arguments' in o, false,
                  "arguments property deletion with property access syntax");
})();

(function() {
    var arguments = 42; // Forces heavyweight.
    reportCompare(delete arguments, false,
                  "arguments variable");
})();

(function() {
    reportCompare(delete arguments, false, "arguments object");
})();