From abd96105300a7729a4d8eb69af2e81dd6307a163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 24 Jan 2023 18:54:10 +0100 Subject: refactor: remove Deno.core (#16881) This commit removes "Deno.core" namespace. It is strictly private API that has no stability guarantees, we were supposed to remove it long time ago. Co-authored-by: Yoshiya Hinosawa --- cli/bench/testdata/deno_upgrade_http.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli/bench/testdata') diff --git a/cli/bench/testdata/deno_upgrade_http.js b/cli/bench/testdata/deno_upgrade_http.js index db14f8589..ca5533411 100644 --- a/cli/bench/testdata/deno_upgrade_http.js +++ b/cli/bench/testdata/deno_upgrade_http.js @@ -1,5 +1,7 @@ const { serve, upgradeHttpRaw } = Deno; -const u8 = Deno.core.encode("HTTP/1.1 101 Switching Protocols\r\n\r\n"); +const u8 = Deno[Deno.internal].core.encode( + "HTTP/1.1 101 Switching Protocols\r\n\r\n", +); async function handler(req) { const [conn, _firstPacket] = upgradeHttpRaw(req); -- cgit v1.2.3