Index: test/mjsunit/harmony/generators-runtime.js |
diff --git a/test/mjsunit/harmony/generators-runtime.js b/test/mjsunit/harmony/generators-runtime.js |
index 0182fc349bcc7e00eb0e6efd439b027caded759a..b4e8f950e1358898d31d16beddd6e36da9228a30 100644 |
--- a/test/mjsunit/harmony/generators-runtime.js |
+++ b/test/mjsunit/harmony/generators-runtime.js |
@@ -105,6 +105,8 @@ function TestGeneratorFunction() { |
assertSame(Function, Object.getPrototypeOf(GeneratorFunction)); |
assertTrue(g instanceof Function); |
+ assertEquals("function* g() { yield 1; }", g.toString()); |
+ |
// Not all functions are generators. |
assertTrue(f instanceof Function); // Sanity check. |
assertTrue(!(f instanceof GeneratorFunction)); |