No ctor for WeakRef.prototype

This commit is contained in:
Leo Balter 2019-06-03 16:54:44 -04:00 committed by Rick Waldron
parent 969d4e68b4
commit e3d87d6690
1 changed files with 5 additions and 15 deletions

View File

@ -2,22 +2,12 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-weak-ref.prototype.constructor
description: WeakRef.prototype.constructor property descriptor
esid: sec-properties-of-the-weak-ref-prototype-object
description: WeakRef.prototype.constructor is not defined
info: |
WeakRef.prototype.constructor
The initial value of WeakRef.prototype.constructor is the intrinsic
object %WeakRef%.
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
Ref https://github.com/tc39/proposal-weakrefs/issues/55#issuecomment-444534867
features: [WeakRef]
---*/
verifyProperty(WeakRef.prototype, "constructor", {
value: WeakRef,
writable: true,
enumerable: false,
configurable: true
});
var actual = WeakRef.prototype.hasOwnProperty('constructor');
assert.sameValue(actual, false);