summaryrefslogtreecommitdiff
path: root/runtime/js/30_os.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-26 23:46:46 +0100
committerGitHub <noreply@github.com>2024-01-26 23:46:46 +0100
commit462ce14a78b4109143918878042b9f552083c82e (patch)
tree64c65d91557159efccb40117e340e7abbb08d75d /runtime/js/30_os.js
parentd889f996577a6345d08c4ce71063be6d765fb5ec (diff)
refactor: migrate extensions to virtual ops module (#22135)
First pass of migrating away from `Deno.core.ensureFastOps()`. A few "tricky" ones have been left for a follow up.
Diffstat (limited to 'runtime/js/30_os.js')
-rw-r--r--runtime/js/30_os.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js
index b35f34e1a..8948cf1ad 100644
--- a/runtime/js/30_os.js
+++ b/runtime/js/30_os.js
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { core, primordials } from "ext:core/mod.js";
-const {
+import { primordials } from "ext:core/mod.js";
+import {
op_delete_env,
op_env,
op_exec_path,
@@ -14,12 +14,10 @@ const {
op_os_release,
op_os_uptime,
op_set_env,
+ op_set_exit_code,
op_system_memory_info,
op_uid,
-} = core.ensureFastOps();
-const {
- op_set_exit_code,
-} = core.ensureFastOps(true);
+} from "ext:core/ops";
const {
Error,
FunctionPrototypeBind,