properties-of-map-instances.js (478B)
1 // Copyright (C) 2015 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 esid: sec-properties-of-weakmap-instances 5 description: > 6 WeakMap instances are ordinary objects that inherit properties from the 7 WeakMap prototype. 8 ---*/ 9 10 assert.sameValue( 11 Object.getPrototypeOf(new WeakMap()), 12 WeakMap.prototype, 13 '`Object.getPrototypeOf(new WeakMap())` returns `WeakMap.prototype`' 14 ); 15 16 reportCompare(0, 0);