diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/WeakMap/properties-of-the-weakmap-prototype-object.js')
-rw-r--r-- | js/src/tests/test262/built-ins/WeakMap/properties-of-the-weakmap-prototype-object.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/WeakMap/properties-of-the-weakmap-prototype-object.js b/js/src/tests/test262/built-ins/WeakMap/properties-of-the-weakmap-prototype-object.js new file mode 100644 index 0000000000..2a3e1057b2 --- /dev/null +++ b/js/src/tests/test262/built-ins/WeakMap/properties-of-the-weakmap-prototype-object.js @@ -0,0 +1,22 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-properties-of-the-weakmap-prototype-object +description: > + The WeakMap.prototype's prototype is Object.prototype. +info: | + 23.3.3 Properties of the WeakMap Prototype Object + + The WeakMap prototype object is the intrinsic object %WeakMapPrototype%. The + value of the [[Prototype]] internal slot of the WeakMap prototype object is + the intrinsic object %ObjectPrototype% (19.1.3). The WeakMap prototype object + is an ordinary object. It does not have a [[WeakMapData]] internal slot. +---*/ + +assert.sameValue( + Object.getPrototypeOf(WeakMap.prototype), + Object.prototype, + '`Object.getPrototypeOf(WeakMap.prototype)` returns `Object.prototype`' +); + +reportCompare(0, 0); |