primitive-symbols.js (452B)
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.values 6 description: Object.values accepts Symbol primitives. 7 author: Jordan Harband 8 features: [Symbol] 9 ---*/ 10 11 var result = Object.values(Symbol()); 12 13 assert.sameValue(Array.isArray(result), true, 'result is an array'); 14 assert.sameValue(result.length, 0, 'result has 0 items'); 15 16 reportCompare(0, 0);