js/src/tests/test262/ch11/11.2/11.2.4/S11.2.4_A1.1_T2.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 // Copyright 2009 the Sputnik authors.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * Arguments : ()
     6  *
     7  * @path ch11/11.2/11.2.4/S11.2.4_A1.1_T2.js
     8  * @description Function is declared with FormalParameterList
     9  */
    11 function f_arg(x,y) {
    12   return arguments;
    13 }
    15 //CHECK#1
    16 if (f_arg().length !== 0) {
    17   $ERROR('#1: function f_arg(x,y) {return arguments;} f_arg().length === 0. Actual: ' + (f_arg().length));
    18 }
    20 //CHECK#2
    21 if (f_arg()[0] !== undefined) {
    22   $ERROR('#2: function f_arg(x,y) {return arguments;} f_arg()[0] === undefined. Actual: ' + (f_arg()[0]));
    23 }
    25 //CHECK#3
    26 if (f_arg.length !== 2) {
    27   $ERROR('#3: function f_arg(x,y) {return arguments;} f_arg.length === 2. Actual: ' + (f_arg.length));
    28 }

mercurial