summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/GeneratorFunction/prototype/prototype.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/GeneratorFunction/prototype/prototype.js')
-rw-r--r--js/src/tests/test262/built-ins/GeneratorFunction/prototype/prototype.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/GeneratorFunction/prototype/prototype.js b/js/src/tests/test262/built-ins/GeneratorFunction/prototype/prototype.js
new file mode 100644
index 0000000000..66b18eb458
--- /dev/null
+++ b/js/src/tests/test262/built-ins/GeneratorFunction/prototype/prototype.js
@@ -0,0 +1,25 @@
+// Copyright (C) 2013 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+es6id: 25.2.3.2
+description: >
+ The value of GeneratorFunction.prototype.prototype is the
+ %GeneratorPrototype% intrinsic object.
+
+ This property has the attributes { [[Writable]]: false, [[Enumerable]]:
+ false, [[Configurable]]: true }.
+includes: [propertyHelper.js]
+features: [generators]
+---*/
+
+var GeneratorFunctionPrototype = Object.getPrototypeOf(function*() {});
+assert.sameValue(
+ GeneratorFunctionPrototype.prototype,
+ Object.getPrototypeOf(function*() {}.prototype)
+);
+
+verifyNotEnumerable(GeneratorFunctionPrototype, 'prototype');
+verifyNotWritable(GeneratorFunctionPrototype, 'prototype');
+verifyConfigurable(GeneratorFunctionPrototype, 'prototype');
+
+reportCompare(0, 0);