diff options
Diffstat (limited to 'runtime/js/40_http.js')
-rw-r--r-- | runtime/js/40_http.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/js/40_http.js b/runtime/js/40_http.js index 4a8743438..36d810374 100644 --- a/runtime/js/40_http.js +++ b/runtime/js/40_http.js @@ -3,10 +3,11 @@ ((window) => { const core = window.__bootstrap.core; + const ops = core.ops; const { HttpConn } = window.__bootstrap.http; function serveHttp(conn) { - const rid = core.opSync("op_http_start", conn.rid); + const rid = ops.op_http_start(conn.rid); return new HttpConn(rid, conn.remoteAddr, conn.localAddr); } |