blob: d648b672af51e9d5323898bb890297811b6c429a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (C) 2018 Valerie Young. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-asyncgenerator-prototype-constructor
description: >
The GeneratorPrototype intrinsic's constructor.
info: |
AsyncGenerator.prototype.constructor
The initial value of AsyncGenerator.prototype.constructor is the
intrinsic object %AsyncGenerator%.
This property has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [async-iteration]
---*/
async function* g() {}
var AsyncGenerator = Object.getPrototypeOf(g);
var AsyncGeneratorPrototype = AsyncGenerator.prototype;
verifyProperty(AsyncGeneratorPrototype, 'constructor', {
value: AsyncGenerator,
enumerable: false,
writable: false,
configurable: true,
});
reportCompare(0, 0);
|