js/src/tests/test262/ch10/10.2/10.2.3/S10.2.3_A2.3_T3.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.3_T3.js
     8  * @description Global execution context - Constructor Properties
     9  */
    11 var evalStr = 
    12 '//CHECK#1\n'+
    13 'for (var x in this) {\n'+
    14 '  if ( x === \'Object\' ) {\n'+
    15 '    $ERROR("#1: \'Object\' have attribute DontEnum");\n'+
    16 '  } else if ( x === \'Function\') {\n'+
    17 '    $ERROR("#1: \'Function\' have attribute DontEnum");\n'+
    18 '  } else if ( x === \'String\' ) {\n'+
    19 '    $ERROR("#1: \'String\' have attribute DontEnum");\n'+
    20 '  } else if ( x === \'Number\' ) {\n'+
    21 '    $ERROR("#1: \'Number\' have attribute DontEnum");\n'+
    22 '  } else if ( x === \'Array\' ) {\n'+
    23 '    $ERROR("#1: \'Array\' have attribute DontEnum");\n'+
    24 '  } else if ( x === \'Boolean\' ) {\n'+
    25 '    $ERROR("#1: \'Boolean\' have attribute DontEnum");\n'+
    26 '  } else if ( x === \'Date\' ) {\n'+
    27 '    $ERROR("#1: \'Date\' have attribute DontEnum");\n'+
    28 '  } else if ( x === \'RegExp\' ) {\n'+
    29 '    $ERROR("#1: \'RegExp\' have attribute DontEnum");\n'+
    30 '  } else if ( x === \'Error\' ) {\n'+
    31 '    $ERROR("#1: \'Error\' have attribute DontEnum");\n'+
    32 '  } else if ( x === \'EvalError\' ) {\n'+
    33 '    $ERROR("#1: \'EvalError\' have attribute DontEnum");\n'+
    34 '  } else if ( x === \'RangeError\' ) {\n'+
    35 '    $ERROR("#1: \'RangeError\' have attribute DontEnum");\n'+
    36 '  } else if ( x === \'ReferenceError\' ) {\n'+
    37 '    $ERROR("#1: \'ReferenceError\' have attribute DontEnum");\n'+
    38 '  } else if ( x === \'SyntaxError\' ) {\n'+
    39 '    $ERROR("#1: \'SyntaxError\' have attribute DontEnum");\n'+
    40 '  } else if ( x === \'TypeError\' ) {\n'+
    41 '    $ERROR("#1: \'TypeError\' have attribute DontEnum");\n'+
    42 '  } else if ( x === \'URIError\' ) {\n'+
    43 '    $ERROR("#1: \'URIError\' have attribute DontEnum");\n'+
    44 '  }\n'+
    45 '}\n';
    47 eval(evalStr);

mercurial