Debian Codegraph @

js/src/tests/test262/built-ins/parseInt/S15.1.2.2_A9.5.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: The parseInt property has the attribute DontEnum
6 esid: sec-parseint-string-radix
7 description: Checking use propertyIsEnumerable, for-in
8 ---*/
9
10 assert.sameValue(
11 this.propertyIsEnumerable('parseInt'),
12 false,
13 'this.propertyIsEnumerable(\'parseInt\') must return false'
14 );
15
16 //CHECK#2
17 var result = true;
18 for (var p in this) {
19 if (p === "parseInt") {
20 result = false;
21 }
22 }
23
24 assert.sameValue(result, true, 'The value of `result` is true');
25
26 reportCompare(0, 0);