js/src/tests/test262/ch13/13.2/S13.2.2_A15_T2.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  * When the [[Construct]] property for a Function object F is called,
     6  * and the object created in the function is returned, the object (declared with "this" within a function) will be strong and healthy
     7  *
     8  * @path ch13/13.2/S13.2.2_A15_T2.js
     9  * @description Function declared at the end of the program and "obj" property is declared with "obj = {}"
    10  */
    12 var __obj = new __FACTORY();
    14 //////////////////////////////////////////////////////////////////////////////
    15 //CHECK#1
    16 if (obj.prop !== "A") {
    17 	$ERROR('#1: obj.prop === "A". Actual: obj.prop ==='+obj.prop);
    18 }
    19 //
    20 //////////////////////////////////////////////////////////////////////////////
    22 //////////////////////////////////////////////////////////////////////////////
    23 //CHECK#2
    24 if (__obj.prop !== "A") {
    25 	$ERROR('#2: __obj.prop === "A". Actual: __obj.prop ==='+__obj.prop);
    26 }
    27 //
    28 //////////////////////////////////////////////////////////////////////////////
    30 //////////////////////////////////////////////////////////////////////////////
    31 //CHECK#3
    32 if (__obj.slot.prop !==1) {
    33 	$ERROR('#3: __obj.slot.prop === 1. Actual: __obj.slot.prop ==='+__obj.slot.prop);
    34 }
    35 //
    36 //////////////////////////////////////////////////////////////////////////////
    38 function __FACTORY(){
    39     this.prop = 1;
    40     obj = {};
    41     obj.prop = "A";
    42     obj.slot = this;
    43     return obj;
    44 }

mercurial