| // Copyright (C) 2015 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| The new Map object's prototype is Map.prototype |
| When the Map function is called with optional argument the following steps |
| 2. Let map be OrdinaryCreateFromConstructor(NewTarget, "%MapPrototype%", |
| Object.getPrototypeOf(m1), |
| "`Object.getPrototypeOf(m1)` returns `Map.prototype`" |
| var m2 = new Map([[1, 1], [2, 2]]); |
| Object.getPrototypeOf(m2), |
| "`Object.getPrototypeOf(m2)` returns `Map.prototype`" |