summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-25 00:45:19 +0100
committerGitHub <noreply@github.com>2024-01-25 00:45:19 +0100
commit174bb70eda6bd3eea48c9fcd240041a62749eab6 (patch)
treee93ae5ebe93ce0923f97adf4491764e8f46de498 /runtime/js
parenta4e64fb7da40f76fe4448a4cc58e30deeee3d5d5 (diff)
fix: don't use public rid accessors in internal APIs (#22091)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/40_http.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/js/40_http.js b/runtime/js/40_http.js
index fcabf237b..313adcbee 100644
--- a/runtime/js/40_http.js
+++ b/runtime/js/40_http.js
@@ -1,8 +1,11 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { core, internals } from "ext:core/mod.js";
+import { core, internals, primordials } from "ext:core/mod.js";
const {
op_http_start,
} = core.ensureFastOps();
+const {
+ SymbolFor,
+} = primordials;
import { HttpConn } from "ext:deno_http/01_http.js";
@@ -12,7 +15,7 @@ function serveHttp(conn) {
new Error().stack,
"Use `Deno.serve()` instead.",
);
- const rid = op_http_start(conn.rid);
+ const rid = op_http_start(conn[SymbolFor("Deno.internal.rid")]);
return new HttpConn(rid, conn.remoteAddr, conn.localAddr);
}