summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-04-13 12:41:47 +0100
committerGitHub <noreply@github.com>2021-04-13 07:41:47 -0400
commitdf49a8462caf1cf4eea5c9f386322dae5e14dc4f (patch)
tree87ee3f97e46a879bdffab3d85e6526d4450abe23 /runtime/js
parenta8057e3e06962a8d7c6330a085704bb4493eed04 (diff)
fix(cli/dts): Make respondWith() return a Promise (#10128)
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/40_http.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/js/40_http.js b/runtime/js/40_http.js
index 18ead84c3..6b9d3dca6 100644
--- a/runtime/js/40_http.js
+++ b/runtime/js/40_http.js
@@ -106,8 +106,8 @@
return array;
}
- function createRespondWith(responseSenderRid, connRid) {
- return async function (resp) {
+ function createRespondWith(responseSenderRid) {
+ return async function respondWith(resp) {
if (resp instanceof Promise) {
resp = await resp;
}