mirror of
https://github.com/tc39/test262.git
synced 2025-07-15 18:14:43 +02:00
No ctor for WeakRef.prototype
This commit is contained in:
parent
969d4e68b4
commit
e3d87d6690
20
test/built-ins/WeakRef/prototype/constructor.js
vendored
20
test/built-ins/WeakRef/prototype/constructor.js
vendored
@ -2,22 +2,12 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
esid: sec-weak-ref.prototype.constructor
|
esid: sec-properties-of-the-weak-ref-prototype-object
|
||||||
description: WeakRef.prototype.constructor property descriptor
|
description: WeakRef.prototype.constructor is not defined
|
||||||
info: |
|
info: |
|
||||||
WeakRef.prototype.constructor
|
Ref https://github.com/tc39/proposal-weakrefs/issues/55#issuecomment-444534867
|
||||||
|
|
||||||
The initial value of WeakRef.prototype.constructor is the intrinsic
|
|
||||||
object %WeakRef%.
|
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
features: [WeakRef]
|
features: [WeakRef]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(WeakRef.prototype, "constructor", {
|
var actual = WeakRef.prototype.hasOwnProperty('constructor');
|
||||||
value: WeakRef,
|
assert.sameValue(actual, false);
|
||||||
writable: true,
|
|
||||||
enumerable: false,
|
|
||||||
configurable: true
|
|
||||||
});
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user