From 0770449c938cdd0edbadaf1e87e460b21fc1b4ef Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 12 Mar 2021 21:23:59 +0100 Subject: refactor: move Console to op_crates/console (#9770) --- runtime/js/06_util.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'runtime/js/06_util.js') diff --git a/runtime/js/06_util.js b/runtime/js/06_util.js index 7ceb41102..9df9ac88a 100644 --- a/runtime/js/06_util.js +++ b/runtime/js/06_util.js @@ -3,7 +3,6 @@ ((window) => { const { build } = window.__bootstrap.build; - const internals = window.__bootstrap.internals; let logDebug = false; let logSource = "JS"; @@ -100,7 +99,10 @@ return pathOrUrl; } - internals.exposeForTest("pathFromURL", pathFromURL); + window.__bootstrap.internals = { + ...window.__bootstrap.internals ?? {}, + pathFromURL, + }; function writable(value) { return { -- cgit v1.2.3