diff options
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/30_metrics.js | 18 | ||||
-rw-r--r-- | runtime/js/40_testing.js | 2 | ||||
-rw-r--r-- | runtime/js/90_deno_ns.js | 3 |
3 files changed, 3 insertions, 20 deletions
diff --git a/runtime/js/30_metrics.js b/runtime/js/30_metrics.js deleted file mode 100644 index ecc1cfc64..000000000 --- a/runtime/js/30_metrics.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. -"use strict"; - -((window) => { - const core = window.Deno.core; - - function metrics() { - const { combined, ops } = core.opSync("op_metrics"); - if (ops) { - combined.ops = ops; - } - return combined; - } - - window.__bootstrap.metrics = { - metrics, - }; -})(this); diff --git a/runtime/js/40_testing.js b/runtime/js/40_testing.js index f4f5373c6..92181cae1 100644 --- a/runtime/js/40_testing.js +++ b/runtime/js/40_testing.js @@ -6,7 +6,7 @@ const { parsePermissions } = window.__bootstrap.worker; const { setExitHandler } = window.__bootstrap.os; const { Console, inspectArgs } = window.__bootstrap.console; - const { metrics } = window.__bootstrap.metrics; + const { metrics } = core; const { assert } = window.__bootstrap.util; const { ArrayPrototypeFilter, diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index 28c7c48f5..897705f84 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -2,10 +2,11 @@ "use strict"; ((window) => { + const core = window.Deno.core; const __bootstrap = window.__bootstrap; __bootstrap.denoNs = { + metrics: core.metrics, test: __bootstrap.testing.test, - metrics: __bootstrap.metrics.metrics, Process: __bootstrap.process.Process, run: __bootstrap.process.run, isatty: __bootstrap.tty.isatty, |