Skip to content

Commit

Permalink
Include parentKeyName with calls to test function
Browse files Browse the repository at this point in the history
  • Loading branch information
John Haley committed Nov 26, 2014
1 parent cb10362 commit 8102448
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 8102448

Please sign in to comment.