| 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 |
info: Global object properties have attributes { DontEnum } |
| 6 |
es5id: 10.2.3_A2.1_T3 |
| 7 |
description: Global execution context - Constructor Properties |
| 8 |
---*/ |
| 9 |
|
| 10 |
//CHECK#1 |
| 11 |
for (var x in this) { |
| 12 |
if (x === 'Object') { |
| 13 |
$ERROR("#1: 'property 'Object' have attribute DontEnum"); |
| 14 |
} else if (x === 'Function') { |
| 15 |
$ERROR("#1: 'Function' have attribute DontEnum"); |
| 16 |
} else if (x === 'String') { |
| 17 |
$ERROR("#1: 'String' have attribute DontEnum"); |
| 18 |
} else if (x === 'Number') { |
| 19 |
$ERROR("#1: 'Number' have attribute DontEnum"); |
| 20 |
} else if (x === 'Array') { |
| 21 |
$ERROR("#1: 'Array' have attribute DontEnum"); |
| 22 |
} else if (x === 'Boolean') { |
| 23 |
$ERROR("#1: 'Boolean' have attribute DontEnum"); |
| 24 |
} else if (x === 'Date') { |
| 25 |
$ERROR("#1: 'Date' have attribute DontEnum"); |
| 26 |
} else if (x === 'RegExp') { |
| 27 |
$ERROR("#1: 'RegExp' have attribute DontEnum"); |
| 28 |
} else if (x === 'Error') { |
| 29 |
$ERROR("#1: 'Error' have attribute DontEnum"); |
| 30 |
} else if (x === 'EvalError') { |
| 31 |
$ERROR("#1: 'EvalError' have attribute DontEnum"); |
| 32 |
} else if (x === 'RangeError') { |
| 33 |
$ERROR("#1: 'RangeError' have attribute DontEnum"); |
| 34 |
} else if (x === 'ReferenceError') { |
| 35 |
$ERROR("#1: 'ReferenceError' have attribute DontEnum"); |
| 36 |
} else if (x === 'SyntaxError') { |
| 37 |
$ERROR("#1: 'SyntaxError' have attribute DontEnum"); |
| 38 |
} else if (x === 'TypeError') { |
| 39 |
$ERROR("#1: 'TypeError' have attribute DontEnum"); |
| 40 |
} else if (x === 'URIError') { |
| 41 |
$ERROR("#1: 'URIError' have attribute DontEnum"); |
| 42 |
} |
| 43 |
} |