| 1 |
// Copyright (C) 2016 Jordan Harband. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
description: Object.getOwnPropertyDescriptors accepts boolean primitives. |
| 6 |
esid: sec-object.getownpropertydescriptors |
| 7 |
author: Jordan Harband |
| 8 |
---*/ |
| 9 |
|
| 10 |
var trueResult = Object.getOwnPropertyDescriptors(true); |
| 11 |
|
| 12 |
assert.sameValue(Object.keys(trueResult).length, 0, 'trueResult has 0 items'); |
| 13 |
|
| 14 |
var falseResult = Object.getOwnPropertyDescriptors(false); |
| 15 |
|
| 16 |
assert.sameValue(Object.keys(falseResult).length, 0, 'falseResult has 0 items'); |