2016-02-01 10:45:23 +01:00
|
|
|
// Copyright (C) 2016 Jordan Harband. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
description: Object.getOwnPropertyDescriptors accepts number primitives.
|
2016-05-30 16:43:16 +02:00
|
|
|
esid: sec-object.getownpropertydescriptors
|
2016-02-01 10:45:23 +01:00
|
|
|
author: Jordan Harband
|
|
|
|
---*/
|
|
|
|
|
|
|
|
assert.sameValue(Object.keys(Object.getOwnPropertyDescriptors(0)).length, 0, '0 has zero descriptors');
|
|
|
|
assert.sameValue(Object.keys(Object.getOwnPropertyDescriptors(-0)).length, 0, '-0 has zero descriptors');
|
|
|
|
assert.sameValue(Object.keys(Object.getOwnPropertyDescriptors(Infinity)).length, 0, 'Infinity has zero descriptors');
|
|
|
|
assert.sameValue(Object.keys(Object.getOwnPropertyDescriptors(-Infinity)).length, 0, '-Infinity has zero descriptors');
|
|
|
|
assert.sameValue(Object.keys(Object.getOwnPropertyDescriptors(NaN)).length, 0, 'NaN has zero descriptors');
|
|
|
|
assert.sameValue(Object.keys(Object.getOwnPropertyDescriptors(Math.PI)).length, 0, 'Math.PI has zero descriptors');
|