js/src/tests/test262/ch10/10.2/10.2.3/S10.2.3_A2.1_T2.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  * Global object properties have attributes { DontEnum }
     6  *
     7  * @path ch10/10.2/10.2.3/S10.2.3_A2.1_T2.js
     8  * @description Global execution context - Function Properties
     9  */
    11 //CHECK#1
    12 for (var x in this) {
    13   if ( x === 'eval' ) {
    14     $ERROR("#1: 'eval' have attribute DontEnum");
    15   } else if ( x === 'parseInt' ) {
    16     $ERROR("#1: 'parseInt' have attribute DontEnum");
    17   } else if ( x === 'parseFloat' ) {
    18     $ERROR("#1: 'parseFloat' have attribute DontEnum");
    19   } else if ( x === 'isNaN' ) {
    20     $ERROR("#1: 'isNaN' have attribute DontEnum");
    21   } else if ( x === 'isFinite' ) {
    22     $ERROR("#1: 'isFinite' have attribute DontEnum");
    23   } else if ( x === 'decodeURI' ) {
    24     $ERROR("#1: 'decodeURI' have attribute DontEnum");
    25   } else if ( x === 'decodeURIComponent' ) {
    26     $ERROR("#1: 'decodeURIComponent' have attribute DontEnum");
    27   } else if ( x === 'encodeURI' ) {
    28     $ERROR("#1: 'encodeURI' have attribute DontEnum");
    29   } else if ( x === 'encodeURIComponent' ) {
    30     $ERROR("#1: 'encodeURIComponent' have attribute DontEnum");
    31   } 
    32 }

mercurial