diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-01-24 18:54:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 18:54:10 +0100 |
commit | abd96105300a7729a4d8eb69af2e81dd6307a163 (patch) | |
tree | 75b7556f876b2a2df3e22b905922dfb11572ef6d /cli/bench/deno_common.js | |
parent | 1084027d502d54ebf256c867fe85600b295d8a06 (diff) |
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 <stibium121@gmail.com>
Diffstat (limited to 'cli/bench/deno_common.js')
-rw-r--r-- | cli/bench/deno_common.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/bench/deno_common.js b/cli/bench/deno_common.js index 2676fc8de..31ab05fba 100644 --- a/cli/bench/deno_common.js +++ b/cli/bench/deno_common.js @@ -8,7 +8,7 @@ Deno.bench("date_now", { n: 5e5 }, () => { // Fast API calls { // deno-lint-ignore camelcase - const { op_add } = Deno.core.ops; + const { op_add } = Deno[Deno.internal].core.ops; // deno-lint-ignore no-inner-declarations function add(a, b) { return op_add(a, b); @@ -22,7 +22,7 @@ Deno.bench("date_now", { n: 5e5 }, () => { } // deno-lint-ignore camelcase -const { op_void_sync } = Deno.core.ops; +const { op_void_sync } = Deno[Deno.internal].core.ops; function sync() { return op_void_sync(); } @@ -34,7 +34,7 @@ Deno.bench("op_void_sync", () => sync()); Deno.bench( "op_void_async", { n: 1e6 }, - () => Deno.core.opAsync("op_void_async"), + () => Deno[Deno.internal].core.opAsync("op_void_async"), ); // A very lightweight op, that should be highly optimizable |