tests/auto/qml/ecmascripttests/test262/test/built-ins/WeakMap/properties-of-map-instances.js
raw| 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.3.4 |
| 5 | esid: sec-properties-of-weakmap-instances |
| 6 | description: > |
| 7 | WeakMap instances are ordinary objects that inherit properties from the |
| 8 | WeakMap prototype. |
| 9 | ---*/ |
| 10 | |
| 11 | assert.sameValue( |
| 12 | Object.getPrototypeOf(new WeakMap()), |
| 13 | WeakMap.prototype, |
| 14 | '`Object.getPrototypeOf(new WeakMap())` returns `WeakMap.prototype`' |
| 15 | ); |