tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/entries/primitive-symbols.js
raw| 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 Symbol primitives. |
| 7 | author: Jordan Harband |
| 8 | features: [Symbol] |
| 9 | ---*/ |
| 10 | |
| 11 | var result = Object.entries(Symbol()); |
| 12 | |
| 13 | assert.sameValue(Array.isArray(result), true, 'result is an array'); |
| 14 | assert.sameValue(result.length, 0, 'result has 0 items'); |