summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/AsyncGeneratorFunction/prototype/extensibility.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/AsyncGeneratorFunction/prototype/extensibility.js')
-rw-r--r--js/src/tests/test262/built-ins/AsyncGeneratorFunction/prototype/extensibility.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/AsyncGeneratorFunction/prototype/extensibility.js b/js/src/tests/test262/built-ins/AsyncGeneratorFunction/prototype/extensibility.js
new file mode 100644
index 0000000000..ccc93092b1
--- /dev/null
+++ b/js/src/tests/test262/built-ins/AsyncGeneratorFunction/prototype/extensibility.js
@@ -0,0 +1,16 @@
+// Copyright (C) 2018 Valerie Young. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+esid: sec-properties-of-asyncgenerator-prototype
+description: Object extensibility
+info: |
+ The initial value of the [[Extensible]] internal slot of the
+ AsyncGeneratorFunction prototype object is true.
+features: [async-iteration]
+---*/
+
+var AsyncGeneratorFunction = Object.getPrototypeOf(async function* () {}).constructor;
+
+assert(Object.isExtensible(AsyncGeneratorFunction.prototype));
+
+reportCompare(0, 0);