diff options
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/30_os.js | 11 | ||||
-rw-r--r-- | runtime/js/90_deno_ns.js | 1 |
2 files changed, 9 insertions, 3 deletions
diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js index 38b0acb32..e8467c268 100644 --- a/runtime/js/30_os.js +++ b/runtime/js/30_os.js @@ -28,6 +28,10 @@ return core.opSync("op_network_interfaces"); } + function getUid() { + return core.opSync("op_getuid"); + } + // This is an internal only method used by the test harness to override the // behavior of exit when the exit sanitizer is enabled. let exitHandler = null; @@ -87,12 +91,13 @@ window.__bootstrap.os = { env, execPath, - setExitHandler, exit, - osRelease, - systemMemoryInfo, + getUid, hostname, loadavg, networkInterfaces, + osRelease, + setExitHandler, + systemMemoryInfo, }; })(this); diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index 55cd34914..871062394 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -122,6 +122,7 @@ osRelease: __bootstrap.os.osRelease, systemMemoryInfo: __bootstrap.os.systemMemoryInfo, networkInterfaces: __bootstrap.os.networkInterfaces, + getUid: __bootstrap.os.getUid, applySourceMap: __bootstrap.errorStack.opApplySourceMap, formatDiagnostics: __bootstrap.errorStack.opFormatDiagnostics, sleepSync: __bootstrap.timers.sleepSync, |