summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/AsyncGeneratorPrototype/Symbol.toStringTag.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/AsyncGeneratorPrototype/Symbol.toStringTag.js')
-rw-r--r--js/src/tests/test262/built-ins/AsyncGeneratorPrototype/Symbol.toStringTag.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/AsyncGeneratorPrototype/Symbol.toStringTag.js b/js/src/tests/test262/built-ins/AsyncGeneratorPrototype/Symbol.toStringTag.js
new file mode 100644
index 0000000000..b725467f5f
--- /dev/null
+++ b/js/src/tests/test262/built-ins/AsyncGeneratorPrototype/Symbol.toStringTag.js
@@ -0,0 +1,30 @@
+// 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-tostringtag
+description: >
+ `Symbol.toStringTag` property descriptor
+info: |
+ The initial value of the @@toStringTag property is the String value
+ "AsyncGenerator".
+
+ This property has the attributes { [[Writable]]: false, [[Enumerable]]:
+ false, [[Configurable]]: true }.
+
+includes: [propertyHelper.js]
+features: [async-iteration, Symbol.toStringTag]
+---*/
+
+var AsyncGeneratorPrototype = Object.getPrototypeOf(
+ Object.getPrototypeOf(async function*() {}())
+);
+
+verifyProperty(AsyncGeneratorPrototype, Symbol.toStringTag, {
+ value: 'AsyncGenerator',
+ enumerable: false,
+ writable: false,
+ configurable: true,
+});
+
+reportCompare(0, 0);