summaryrefslogtreecommitdiff
path: root/runtime/js/30_os.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-02-14 12:35:38 +0100
committerGitHub <noreply@github.com>2023-02-14 12:35:38 +0100
commit201737c518237b271b5bbbd8e2b1fd19ce51fdd9 (patch)
tree49a4da83ee9c6cdb7a9798f3d6f1430e027913c0 /runtime/js/30_os.js
parent2502a37d41e8a7f279af74d7dacc009ee1010f67 (diff)
feat: stabilize Deno.osUptime() (#17554)
This commit stabilizes "Deno.osUptime()" API. The "--unstable" flag is no longer required to use this API.
Diffstat (limited to 'runtime/js/30_os.js')
-rw-r--r--runtime/js/30_os.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js
index b09f25797..63e3748d3 100644
--- a/runtime/js/30_os.js
+++ b/runtime/js/30_os.js
@@ -25,10 +25,8 @@ function osRelease() {
return ops.op_os_release();
}
-function createOsUptime(opFn) {
- return function osUptime() {
- return opFn();
- };
+function osUptime() {
+ return ops.op_os_uptime();
}
function systemMemoryInfo() {
@@ -107,7 +105,6 @@ function execPath() {
}
export {
- createOsUptime,
env,
execPath,
exit,
@@ -116,6 +113,7 @@ export {
loadavg,
networkInterfaces,
osRelease,
+ osUptime,
setExitHandler,
systemMemoryInfo,
uid,