diff options
Diffstat (limited to 'js/src/tests/test262/language/types/object/S8.6.1_A2.js')
-rw-r--r-- | js/src/tests/test262/language/types/object/S8.6.1_A2.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/types/object/S8.6.1_A2.js b/js/src/tests/test262/language/types/object/S8.6.1_A2.js new file mode 100644 index 0000000000..cb73a76a30 --- /dev/null +++ b/js/src/tests/test262/language/types/object/S8.6.1_A2.js @@ -0,0 +1,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); |