| 1 |
// Copyright (C) 2015 Jordan Harband. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
esid: sec-object.entries |
| 6 |
description: Object.entries accepts number primitives. |
| 7 |
author: Jordan Harband |
| 8 |
---*/ |
| 9 |
|
| 10 |
assert.sameValue(Object.entries(0).length, 0, '0 has zero entries'); |
| 11 |
assert.sameValue(Object.entries(-0).length, 0, '-0 has zero entries'); |
| 12 |
assert.sameValue(Object.entries(Infinity).length, 0, 'Infinity has zero entries'); |
| 13 |
assert.sameValue(Object.entries(-Infinity).length, 0, '-Infinity has zero entries'); |
| 14 |
assert.sameValue(Object.entries(NaN).length, 0, 'NaN has zero entries'); |
| 15 |
assert.sameValue(Object.entries(Math.PI).length, 0, 'Math.PI has zero entries'); |