Skip to content

Commit 9b2be0c

Browse files
committed
No ctor for WeakRef.prototype
1 parent 76bfe73 commit 9b2be0c

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

test/built-ins/WeakRef/prototype/constructor.js

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,12 @@
22
// This code is governed by the BSD license found in the LICENSE file.
33

44
/*---
5-
esid: sec-weak-ref.prototype.constructor
6-
description: WeakRef.prototype.constructor property descriptor
5+
esid: sec-properties-of-the-weak-ref-prototype-object
6+
description: WeakRef.prototype.constructor is not defined
77
info: |
8-
WeakRef.prototype.constructor
9-
10-
The initial value of WeakRef.prototype.constructor is the intrinsic
11-
object %WeakRef%.
12-
13-
17 ECMAScript Standard Built-in Objects
14-
includes: [propertyHelper.js]
8+
Ref https://github.com/tc39/proposal-weakrefs/issues/55#issuecomment-444534867
159
features: [WeakRef]
1610
---*/
1711

18-
verifyProperty(WeakRef.prototype, "constructor", {
19-
value: WeakRef,
20-
writable: true,
21-
enumerable: false,
22-
configurable: true
23-
});
12+
var actual = WeakRef.prototype.hasOwnProperty('constructor');
13+
assert.sameValue(actual, false);

0 commit comments

Comments
 (0)