Skip to content

Commit c4a150f

Browse files
committed
Compatibility with Node 6.0.0 generators
1 parent 05d91aa commit c4a150f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ MultipleErrors.prototype = Object.create(Error.prototype);
1414
MultipleErrors.prototype.constructor = MultipleErrors;
1515

1616
function isGeneratorProto(v) {
17-
return v && v.constructor && v.constructor.name == 'GeneratorFunctionPrototype';
17+
return v+'' == '[object Generator]';
1818
}
1919

2020
function parallel(object, loop, callback) {

0 commit comments

Comments
 (0)