diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-03-12 21:23:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 21:23:59 +0100 |
commit | 0770449c938cdd0edbadaf1e87e460b21fc1b4ef (patch) | |
tree | 649807f55ed9e03f1d1cd5291295e8d4ff5345da /runtime/js/06_util.js | |
parent | e83ff62ccbe33ad9c19cb9cab9154b6767d6d74b (diff) |
refactor: move Console to op_crates/console (#9770)
Diffstat (limited to 'runtime/js/06_util.js')
-rw-r--r-- | runtime/js/06_util.js | 6 |
1 files changed, 4 insertions, 2 deletions
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 { |