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:
Bartek Iwańczuk 2023-02-14 12:35:38 +01:00 committed by GitHub
parent 2502a37d41
commit 201737c518
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 25 deletions

View file

@ -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,