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

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     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_T3.js
     8  * @description Declaring 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(arguments){
    16     return arguments;
    18 };
    20 //////////////////////////////////////////////////////////////////////////////
    21 //CHECK#1
    22 if (typeof __func() !== "undefined") {
    23 	$ERROR('#1: typeof __func() === "undefined". Actual: typeof __func() ==='+typeof __func());
    24 }
    25 //
    26 //////////////////////////////////////////////////////////////////////////////
    28 //////////////////////////////////////////////////////////////////////////////
    29 //CHECK#2
    30 if (__func("The Ultimate Question") !== "The Ultimate Question") {
    31 	$ERROR('#2: __func("The Ultimate Question") === "The Ultimate Question". Actual: __func("The Ultimate Question")==='+__func("The Ultimate Question"));
    32 }
    33 //
    34 //////////////////////////////////////////////////////////////////////////////

mercurial