Skip to content

Commit 8c1f704

Browse files
committed
fix oversight in nodegit#802
1 parent 835d122 commit 8c1f704

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

generate/scripts/helpers.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,11 @@ var Helpers = {
262262
// itself and determine if this function goes on the prototype
263263
// or is a constructor method.
264264
arg.isReturn = arg.name === "out" || (utils.isDoublePointer(arg.type) && normalizedType == typeDef.cType);
265-
arg.isSelf = utils.isPointer(arg.type) &&
266-
normalizedType == typeDef.cType &&
267-
_.every(allArgs, function(_arg) { return !_arg.isSelf; });
265+
if (typeof arg.isSelf == 'undefined') {
266+
arg.isSelf = utils.isPointer(arg.type) &&
267+
normalizedType == typeDef.cType &&
268+
_.every(allArgs, function(_arg) { return !_arg.isSelf; });
269+
}
268270

269271
if (arg.isReturn && fnDef.return && fnDef.return.type === "int") {
270272
fnDef.return.isErrorCode = true;

0 commit comments

Comments
 (0)