|
1 // Copyright 2009 the Sputnik authors. All rights reserved. |
|
2 // This code is governed by the BSD license found in the LICENSE file. |
|
3 |
|
4 /** |
|
5 * Global object properties have attributes { DontEnum } |
|
6 * |
|
7 * @path ch10/10.2/10.2.3/S10.2.3_A2.1_T3.js |
|
8 * @description Global execution context - Constructor Properties |
|
9 */ |
|
10 |
|
11 //CHECK#1 |
|
12 for (var x in this) { |
|
13 if ( x === 'Object' ) { |
|
14 $ERROR("#1: 'property 'Object' have attribute DontEnum"); |
|
15 } else if ( x === 'Function') { |
|
16 $ERROR("#1: 'Function' have attribute DontEnum"); |
|
17 } else if ( x === 'String' ) { |
|
18 $ERROR("#1: 'String' have attribute DontEnum"); |
|
19 } else if ( x === 'Number' ) { |
|
20 $ERROR("#1: 'Number' have attribute DontEnum"); |
|
21 } else if ( x === 'Array' ) { |
|
22 $ERROR("#1: 'Array' have attribute DontEnum"); |
|
23 } else if ( x === 'Boolean' ) { |
|
24 $ERROR("#1: 'Boolean' have attribute DontEnum"); |
|
25 } else if ( x === 'Date' ) { |
|
26 $ERROR("#1: 'Date' have attribute DontEnum"); |
|
27 } else if ( x === 'RegExp' ) { |
|
28 $ERROR("#1: 'RegExp' have attribute DontEnum"); |
|
29 } else if ( x === 'Error' ) { |
|
30 $ERROR("#1: 'Error' have attribute DontEnum"); |
|
31 } else if ( x === 'EvalError' ) { |
|
32 $ERROR("#1: 'EvalError' have attribute DontEnum"); |
|
33 } else if ( x === 'RangeError' ) { |
|
34 $ERROR("#1: 'RangeError' have attribute DontEnum"); |
|
35 } else if ( x === 'ReferenceError' ) { |
|
36 $ERROR("#1: 'ReferenceError' have attribute DontEnum"); |
|
37 } else if ( x === 'SyntaxError' ) { |
|
38 $ERROR("#1: 'SyntaxError' have attribute DontEnum"); |
|
39 } else if ( x === 'TypeError' ) { |
|
40 $ERROR("#1: 'TypeError' have attribute DontEnum"); |
|
41 } else if ( x === 'URIError' ) { |
|
42 $ERROR("#1: 'URIError' have attribute DontEnum"); |
|
43 } |
|
44 } |
|
45 |