constructor.js (583B)
1 // Copyright (C) 2013 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 es6id: 19.4.3.1 5 description: > 6 Symbol constructor 7 features: [Symbol] 8 ---*/ 9 assert.sameValue( 10 Object.getPrototypeOf(Symbol('66')).constructor, 11 Symbol, 12 "The value of `Object.getPrototypeOf(Symbol('66')).constructor` is `Symbol`" 13 ); 14 assert.sameValue( 15 Object.getPrototypeOf(Object(Symbol('66'))).constructor, 16 Symbol, 17 "The value of `Object.getPrototypeOf(Object(Symbol('66'))).constructor` is `Symbol`" 18 ); 19 20 reportCompare(0, 0);