diff options
Diffstat (limited to 'test/built-ins/AsyncGeneratorPrototype/return/prop-desc.js')
-rw-r--r-- | test/built-ins/AsyncGeneratorPrototype/return/prop-desc.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/built-ins/AsyncGeneratorPrototype/return/prop-desc.js b/test/built-ins/AsyncGeneratorPrototype/return/prop-desc.js new file mode 100644 index 000000000..aaf893be1 --- /dev/null +++ b/test/built-ins/AsyncGeneratorPrototype/return/prop-desc.js @@ -0,0 +1,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-thow +description: GeneratorPrototype.return 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, "return", { + enumerable: false, + writable: true, + configurable: true, +}); |