Skip to content

Commit ee6f25b

Browse files
committed
[Fix] fix broken logic
Fixes #45
1 parent d5e41c1 commit ee6f25b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ module.exports = function isGeneratorFunction(fn) {
2727
return false;
2828
}
2929
var GeneratorFunction = getGeneratorFunction();
30-
return GeneratorFunction && getProto(fn) === GeneratorFunction;
30+
return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
3131
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"eslint": "=8.8.0",
6363
"for-each": "^0.3.5",
6464
"in-publish": "^2.0.1",
65-
"make-generator-function": "^2.0.0",
65+
"make-generator-function": "^2.1.0",
6666
"npmignore": "^0.3.1",
6767
"nyc": "^10.3.2",
6868
"safe-publish-latest": "^2.0.0",

0 commit comments

Comments
 (0)