js/src/tests/test262/ch13/13.0/S13_A15_T5.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     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'' variable overrides ActivationObject.arguments
     6  *
     7  * @path ch13/13.0/S13_A15_T5.js
     8  * @description Creating a variable named with "arguments" without a function
     9  */
    11 THE_ANSWER="Answer to Life, the Universe, and Everything";
    13 var arguments = THE_ANSWER;
    15 function __func(){
    16     return arguments;
    17 };
    19 //////////////////////////////////////////////////////////////////////////////
    20 //CHECK#1
    21 if ( __func() === THE_ANSWER) {
    22 	$ERROR('#1: __func() !== THE_ANSWER');
    23 }
    24 //
    25 //////////////////////////////////////////////////////////////////////////////
    27 //////////////////////////////////////////////////////////////////////////////
    28 //CHECK#2
    29 if (__func("The Ultimate Question") === "The Ultimate Question") {
    30 	$ERROR('#2: __func("The Ultimate Question") !== "The Ultimate Question"');
    31 }
    32 //
    33 //////////////////////////////////////////////////////////////////////////////

mercurial