properties-of-map-instances.js (426B)
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 es6id: 23.1.4 5 description: > 6 Map instances are ordinary objects that inherit properties from the Map 7 prototype. 8 ---*/ 9 10 assert.sameValue( 11 Object.getPrototypeOf(new Map()), 12 Map.prototype, 13 '`Object.getPrototypeOf(new Map())` returns `Map.prototype`' 14 ); 15 16 reportCompare(0, 0);