js/src/tests/js1_5/Regress/regress-162392.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 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /*
     3  * Any copyright is dedicated to the Public Domain.
     4  * http://creativecommons.org/licenses/publicdomain/
     5  * Contributor: Bob Clary
     6  */
     9 //-----------------------------------------------------------------------------
    10 // SUMMARY: 10.1.8 Arguments Object length
    12 var BUGNUMBER = 162392;
    13 var summary = 'eval("arguments").length == 0 when no arguments specified';
    14 var actual = noargslength();
    15 var expect = 0;
    17 function noargslength()
    18 {
    19   enterFunc('noargslength');
    20   return eval('arguments').length;
    21   exitFunc('noargslength');
    22 }
    24 //-----------------------------------------------------------------------------
    25 test();
    26 //-----------------------------------------------------------------------------
    28 function test()
    29 {
    30   enterFunc ('test');
    31   printBugNumber(BUGNUMBER);
    32   printStatus (summary);
    34   reportCompare(expect, actual, summary);
    36   exitFunc ('test');
    37 }

mercurial