Index: test/mjsunit/harmony/generators-runtime.js |
diff --git a/test/mjsunit/harmony/generators-runtime.js b/test/mjsunit/harmony/generators-runtime.js |
index b4e8f950e1358898d31d16beddd6e36da9228a30..4c589a6dba1ceb6d1363c8ccd36630f71ee7ecdc 100644 |
--- a/test/mjsunit/harmony/generators-runtime.js |
+++ b/test/mjsunit/harmony/generators-runtime.js |
@@ -110,6 +110,9 @@ function TestGeneratorFunction() { |
// Not all functions are generators. |
assertTrue(f instanceof Function); // Sanity check. |
assertTrue(!(f instanceof GeneratorFunction)); |
+ |
+ assertTrue((new GeneratorFunction()) instanceof GeneratorFunction); |
+ assertTrue(GeneratorFunction() instanceof GeneratorFunction); |
} |
TestGeneratorFunction(); |