summaryrefslogtreecommitdiff
path: root/runtime/js/30_os.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-11-10 06:34:41 -0800
committerGitHub <noreply@github.com>2023-11-10 14:34:41 +0000
commit9f2e56ba96b847d6275ac26656d9d522fca252f7 (patch)
tree1c953d4c6df97cd33615c0ab80a02e65ca8ef4d9 /runtime/js/30_os.js
parent8ecb649182966bd77a7ddac9797496291cbf9521 (diff)
chore: use internal namespace in 40_testing.js (#21141)
Towards #21136 - [x] assign serializePermissions, setTimeout and setExitHandler APIs to internal namespace - [x] remove usage of assert
Diffstat (limited to 'runtime/js/30_os.js')
-rw-r--r--runtime/js/30_os.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js
index a5a55e19b..583449083 100644
--- a/runtime/js/30_os.js
+++ b/runtime/js/30_os.js
@@ -2,6 +2,7 @@
const core = globalThis.Deno.core;
const ops = core.ops;
+const internals = globalThis.__bootstrap.internals;
import { Event, EventTarget } from "ext:deno_web/02_event.js";
const primordials = globalThis.__bootstrap.primordials;
const {
@@ -106,6 +107,8 @@ function execPath() {
return ops.op_exec_path();
}
+internals.setExitHandler = setExitHandler;
+
export {
env,
execPath,