From 0bd53fd52d8937afed401fe1c61bb2ba0b23501c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 28 Sep 2023 16:51:44 +0200 Subject: fix(jupyter): more robust Deno.jupyter namespace (#20710) --- cli/js/40_jupyter.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cli/js/40_jupyter.js') diff --git a/cli/js/40_jupyter.js b/cli/js/40_jupyter.js index 8cdf0789a..ae257f1c1 100644 --- a/cli/js/40_jupyter.js +++ b/cli/js/40_jupyter.js @@ -3,12 +3,14 @@ const core = globalThis.Deno.core; const internals = globalThis.__bootstrap.internals; -import { denoNsUnstable } from "ext:runtime/90_deno_ns.js"; - function enableJupyter() { - denoNsUnstable.jupyter = { + const { + op_jupyter_broadcast, + } = core.ensureFastOps(); + + globalThis.Deno.jupyter = { async broadcast(msgType, content) { - await core.opAsync("op_jupyter_broadcast", msgType, content); + await op_jupyter_broadcast(msgType, content); }, }; } -- cgit v1.2.3