summaryrefslogtreecommitdiff
path: root/runtime/js/30_os.js
diff options
context:
space:
mode:
authorKamil Ogórek <kamil.ogorek@gmail.com>2022-12-28 14:56:05 +0100
committerGitHub <noreply@github.com>2022-12-28 14:56:05 +0100
commit65ea554afe1ce387ea1d663e6178079ebcf0904f (patch)
tree36d6f38dad457cc24979634d8789f85868a0e30d /runtime/js/30_os.js
parent8bdf66c59c7424759f441e19047d7ffc0bf13ef3 (diff)
fix(node): Add op_node_unstable_os_uptime to allow for node interop (#17208)
Diffstat (limited to 'runtime/js/30_os.js')
-rw-r--r--runtime/js/30_os.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js
index 3c9768593..ccce946a5 100644
--- a/runtime/js/30_os.js
+++ b/runtime/js/30_os.js
@@ -25,8 +25,10 @@
return ops.op_os_release();
}
- function osUptime() {
- return ops.op_os_uptime();
+ function createOsUptime(opFn) {
+ return function osUptime() {
+ return opFn();
+ };
}
function systemMemoryInfo() {
@@ -110,7 +112,7 @@
loadavg,
networkInterfaces,
osRelease,
- osUptime,
+ createOsUptime,
setExitHandler,
systemMemoryInfo,
uid,