summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/AsyncGeneratorPrototype/throw/prop-desc.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/AsyncGeneratorPrototype/throw/prop-desc.js')
-rw-r--r--js/src/tests/test262/built-ins/AsyncGeneratorPrototype/throw/prop-desc.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/AsyncGeneratorPrototype/throw/prop-desc.js b/js/src/tests/test262/built-ins/AsyncGeneratorPrototype/throw/prop-desc.js
new file mode 100644
index 0000000000..61456bfe7c
--- /dev/null
+++ b/js/src/tests/test262/built-ins/AsyncGeneratorPrototype/throw/prop-desc.js
@@ -0,0 +1,23 @@
+// 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.throw 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, "throw", {
+ enumerable: false,
+ writable: true,
+ configurable: true,
+});
+
+reportCompare(0, 0);