js/src/tests/test262/ch10/10.4/10.4.1/S10.4.1_A1_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  * Variable instantiation is performed using the global object as
     6  * the variable object and using property attributes { DontDelete }
     7  *
     8  * @path ch10/10.4/10.4.1/S10.4.1_A1_T2.js
     9  * @description Checking if deleting variable x, that is defined as x = 1, fails
    10  * @noStrict
    11  */
    13 x = 1;
    15 if (this.x !== 1) {
    16   $ERROR("#1: variable x is a property of global object");
    17 }
    19 if(delete this.x !== true){
    20   $ERROR("#2: variable x has property attribute DontDelete");
    21 }

mercurial