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

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     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