Skip to content

Commit

Permalink
fix: avoid coercing symbols to name in debug call
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Jul 15, 2024
1 parent 00d2e17 commit ef766b5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/fetch-mock-legacy/src/lib/response-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ e.g. {"body": {"status: "registered"}}`);
this.debug('Wrapping body promises in ES proxies for observability');
return new Proxy(originalResponse[name], {
apply: (func, thisArg, args) => {
this.debug(`Calling res.${name}`);
const result = func.apply(response, args);
if (result.then) {
fetchMock._holdingPromises.push(result.catch(() => null));
Expand Down

0 comments on commit ef766b5

Please sign in to comment.