add isGenerator, isGeneratorFunction