summaryrefslogtreecommitdiff
path: root/ext/http/00_serve.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-26 20:04:07 +0100
committerGitHub <noreply@github.com>2024-01-26 14:04:07 -0500
commit942fb5e0388eab02f98c02541a3f90053afd59d1 (patch)
treeaf1cd1f358a37c8eab15c1a3ef7f3ee1be9548b6 /ext/http/00_serve.js
parent9ed713153cf357dbf103dac2b8912729b4d10186 (diff)
chore: upgrade deno_core (#22124)
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'ext/http/00_serve.js')
-rw-r--r--ext/http/00_serve.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/http/00_serve.js b/ext/http/00_serve.js
index 977497c0b..30f85cdf3 100644
--- a/ext/http/00_serve.js
+++ b/ext/http/00_serve.js
@@ -4,6 +4,7 @@ import { core, internals, primordials } from "ext:core/mod.js";
const {
BadResourcePrototype,
InterruptedPrototype,
+ internalRidSymbol,
} = core;
const {
op_http_close_after_finish,
@@ -33,7 +34,6 @@ const {
PromisePrototypeCatch,
PromisePrototypeThen,
Symbol,
- SymbolFor,
TypeError,
TypedArrayPrototypeGetSymbolToStringTag,
Uint8Array,
@@ -618,7 +618,7 @@ function serve(arg1, arg2) {
function serveHttpOnListener(listener, signal, handler, onError, onListen) {
const context = new CallbackContext(
signal,
- op_http_serve(listener[SymbolFor("Deno.internal.rid")]),
+ op_http_serve(listener[internalRidSymbol]),
listener,
);
const callback = mapToCallback(context, handler, onError);
@@ -634,7 +634,7 @@ function serveHttpOnListener(listener, signal, handler, onError, onListen) {
function serveHttpOnConnection(connection, signal, handler, onError, onListen) {
const context = new CallbackContext(
signal,
- op_http_serve_on(connection[SymbolFor("Deno.internal.rid")]),
+ op_http_serve_on(connection[internalRidSymbol]),
null,
);
const callback = mapToCallback(context, handler, onError);