1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
This commit is contained in:
Divy Srivastava 2024-10-18 10:29:32 +05:30
parent 59bfeeef22
commit 882ff491a8

View file

@ -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;
}