diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Object/getOwnPropertyDescriptors/primitive-symbols.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Object/getOwnPropertyDescriptors/primitive-symbols.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Object/getOwnPropertyDescriptors/primitive-symbols.js b/js/src/tests/test262/built-ins/Object/getOwnPropertyDescriptors/primitive-symbols.js new file mode 100644 index 000000000..d30fa3f46 --- /dev/null +++ b/js/src/tests/test262/built-ins/Object/getOwnPropertyDescriptors/primitive-symbols.js @@ -0,0 +1,13 @@ +// 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 Symbol primitives. +esid: pending +author: Jordan Harband +features: [Symbol] +---*/ + +var result = Object.getOwnPropertyDescriptors(Symbol()); + +assert.sameValue(Object.keys(result).length, 0, 'symbol primitive has no descriptors'); |