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