mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
huh
This commit is contained in:
parent
59bfeeef22
commit
882ff491a8
1 changed files with 2 additions and 1 deletions
|
@ -31,6 +31,7 @@ import {
|
|||
const {
|
||||
ArrayPrototypePush,
|
||||
ObjectHasOwn,
|
||||
ReflectHas,
|
||||
ObjectPrototypeIsPrototypeOf,
|
||||
PromisePrototypeCatch,
|
||||
PromisePrototypeThen,
|
||||
|
@ -504,7 +505,7 @@ function mapToCallback(context, callback, onError) {
|
|||
new ServeHandlerInfo(innerRequest),
|
||||
);
|
||||
|
||||
if (typeof response === "object" && ObjectHasOwn(response, "then")) {
|
||||
if (typeof response === "object" && ReflectHas(response, "then")) {
|
||||
response = await response;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue