Skip to content

Commit

Permalink
[Refactor] Test: a more precise check
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 13, 2024
1 parent dc64c08 commit f6d30cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test.js
Expand Up @@ -221,7 +221,7 @@ function wrapFunction(original) {
var args = $slice(arguments);
var completed = false;
try {
var returned = original ? bound(this, arguments) : void undefined;
var returned = bound ? bound(this, arguments) : void undefined;
$push(calls, { args: args, receiver: this, returned: returned });
completed = true;
return returned;
Expand Down

0 comments on commit f6d30cf

Please sign in to comment.