Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Number/MIN_VALUE/S15.7.3.3_A4.js

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