Skip to content
Myr

perf(hono-base): use `instanceOf` (#1565)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* perf(hono-base): use `instanceOf` * denoify

authored by Yusuke Wada · committed by GitHub · parent cca7577 · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:deno_dist/hono-base.ts+2 added-2 removed
311 unmodified lines
312 } catch (err) {313 return this.handleError(err, c)314 }315316 if (res.constructor.name === 'Response') return res as Response316 if (res instanceof Response) return res317318 if ('response' in res) {319 res = res.response320 }321322 if (res.constructor.name === 'Response') return res as Response322 if (res instanceof Response) return res323324 return (async () => {325 let awaited: Response | TypedResponse | void326 try {
73 unmodified lines
modified:src/hono-base.ts+2 added-2 removed
311 unmodified lines
312 } catch (err) {313 return this.handleError(err, c)314 }315316 if (res.constructor.name === 'Response') return res as Response316 if (res instanceof Response) return res317318 if ('response' in res) {319 res = res.response320 }321322 if (res.constructor.name === 'Response') return res as Response322 if (res instanceof Response) return res323324 return (async () => {325 let awaited: Response | TypedResponse | void326 try {
73 unmodified lines