Skip to content

Commit

Permalink
Merge pull request #5 from nodegit/include-parent-key-name
Browse files Browse the repository at this point in the history
Include parentKeyName with calls to test function
  • Loading branch information
johnhaley81 committed Nov 26, 2014
2 parents cb10362 + 8102448 commit 082b298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function processExports(exports, test, cached, parentKeyName) {
// is asynchronous.
if (test) {
// Pass the function itself, its keyName, and the parent keyName.
if (!test(exports, exports.name || parentKeyName)) {
if (!test(exports, exports.name || parentKeyName, parentKeyName)) {
return exports;
}
}
Expand Down

0 comments on commit 082b298

Please sign in to comment.