summaryrefslogtreecommitdiff
path: root/test/built-ins/AsyncGeneratorPrototype/next/prop-desc.js
blob: b064e4f78915a157479aaf3d9477ef9730e89f92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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-next
description: GeneratorPrototype.next property description
info: |
  This property has the attributes { [[Writable]]: false, [[Enumerable]]:
  false, [[Configurable]]: false }.
includes: [propertyHelper.js]
features: [async-iteration]
---*/

async function* g() {}
var AsyncGeneratorPrototype = Object.getPrototypeOf(g).prototype;

verifyProperty(AsyncGeneratorPrototype, "next", {
  enumerable: false,
  writable: true,
  configurable: true,
});