| Index: test/mjsunit/harmony/generators-runtime.js
|
| diff --git a/test/mjsunit/harmony/generators-runtime.js b/test/mjsunit/harmony/generators-runtime.js
|
| index 7667deb7f631f3059c8288ad55ee0c60fdffa263..aef063b6c8298621f2431879695ba895c0561d93 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();
|
|
|
|
|