summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/types/object/S8.6.1_A2.js
blob: cb73a76a30bc8480fc0e567a6e203b1d5d72aca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: A property can have attribute DontEnum like all properties of Number
es5id: 8.6.1_A2
description: Try to enumerate properties of Number
---*/

//CHECK#1
var count=0;
for (p in Number) count++;
if (count > 0){
  throw new Test262Error('#1: count=0; for (p in Number) count++; count > 0. Actual: ' + (count));
}

reportCompare(0, 0);