Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/getOwnPropertyDescriptors/primitive-symbols.js

raw
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 Symbol primitives.
6 esid: sec-object.getownpropertydescriptors
7 author: Jordan Harband
8 features: [Symbol]
9 ---*/
10
11 var result = Object.getOwnPropertyDescriptors(Symbol());
12
13 assert.sameValue(Object.keys(result).length, 0, 'symbol primitive has no descriptors');