summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/generators/prototype-uniqueness.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/statements/generators/prototype-uniqueness.js')
-rw-r--r--js/src/tests/test262/language/statements/generators/prototype-uniqueness.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/statements/generators/prototype-uniqueness.js b/js/src/tests/test262/language/statements/generators/prototype-uniqueness.js
new file mode 100644
index 0000000000..adb22b820c
--- /dev/null
+++ b/js/src/tests/test262/language/statements/generators/prototype-uniqueness.js
@@ -0,0 +1,16 @@
+// Copyright (C) 2013 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+description: >
+ GeneratorFunction instances are created with a unique prototype object.
+es6id: 25.2.1
+features: [generators]
+---*/
+
+function* g1() {}
+function* g2() {}
+
+assert(g1.prototype !== g2.prototype);
+
+reportCompare(0, 0);