mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
feat: stabilize Deno.osUptime() (#17554)
This commit stabilizes "Deno.osUptime()" API. The "--unstable" flag is no longer required to use this API.
This commit is contained in:
parent
2502a37d41
commit
201737c518
5 changed files with 17 additions and 25 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue