We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5e41c1 commit ee6f25bCopy full SHA for ee6f25b
index.js
@@ -27,5 +27,5 @@ module.exports = function isGeneratorFunction(fn) {
27
return false;
28
}
29
var GeneratorFunction = getGeneratorFunction();
30
- return GeneratorFunction && getProto(fn) === GeneratorFunction;
+ return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
31
};
package.json
@@ -62,7 +62,7 @@
62
"eslint": "=8.8.0",
63
"for-each": "^0.3.5",
64
"in-publish": "^2.0.1",
65
- "make-generator-function": "^2.0.0",
+ "make-generator-function": "^2.1.0",
66
"npmignore": "^0.3.1",
67
"nyc": "^10.3.2",
68
"safe-publish-latest": "^2.0.0",
0 commit comments