| 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: Number.MAX_VALUE has the attribute DontEnum |
| 6 |
es5id: 15.7.3.2_A4 |
| 7 |
description: Checking if enumerating Number.MAX_VALUE fails |
| 8 |
---*/ |
| 9 |
|
| 10 |
//CHECK#1 |
| 11 |
for (var x in Number) { |
| 12 |
if (x === "MAX_VALUE") { |
| 13 |
$ERROR('#1: Number.MAX_VALUE has the attribute DontEnum'); |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
if (Number.propertyIsEnumerable('MAX_VALUE')) { |
| 18 |
$ERROR('#2: Number.MAX_VALUE has the attribute DontEnum'); |
| 19 |
} |