js/src/tests/js1_8_5/regress/regress-551763-0.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 (function() {
     2     var o = {'arguments': 42};
     3     with (o) { // Definitely forces heavyweight.
     4         // Note syntax is not a property access.
     5         reportCompare(delete arguments, true,
     6                       "arguments property deletion within with block");
     7     }
     8     reportCompare('arguments' in o, false,
     9                   "property deletion observable");
    10 })();
    12 (function() {
    13     var o = {'arguments': 42};
    14     delete o.arguments;
    15     reportCompare('arguments' in o, false,
    16                   "arguments property deletion with property access syntax");
    17 })();
    19 (function() {
    20     var arguments = 42; // Forces heavyweight.
    21     reportCompare(delete arguments, false,
    22                   "arguments variable");
    23 })();
    25 (function() {
    26     reportCompare(delete arguments, false, "arguments object");
    27 })();

mercurial