From 0500aa1f71859772fba7c581e8cb2c1c4804dc2a Mon Sep 17 00:00:00 2001 From: Colin Ihrig Date: Wed, 9 Nov 2022 08:14:25 -0500 Subject: feat: stabilize Deno.systemMemoryInfo() (#16445) --- runtime/js/90_deno_ns.js | 2 +- runtime/ops/os/mod.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index a0587c7f6..8111698be 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -121,13 +121,13 @@ unrefTimer: __bootstrap.timers.unrefTimer, osRelease: __bootstrap.os.osRelease, hostname: __bootstrap.os.hostname, + systemMemoryInfo: __bootstrap.os.systemMemoryInfo, networkInterfaces: __bootstrap.os.networkInterfaces, consoleSize: __bootstrap.tty.consoleSize, }; __bootstrap.denoNsUnstable = { DiagnosticCategory: __bootstrap.diagnostics.DiagnosticCategory, - systemMemoryInfo: __bootstrap.os.systemMemoryInfo, gid: __bootstrap.os.gid, uid: __bootstrap.os.uid, listenDatagram: __bootstrap.net.listenDatagram, diff --git a/runtime/ops/os/mod.rs b/runtime/ops/os/mod.rs index 275461cc1..1bc140d44 100644 --- a/runtime/ops/os/mod.rs +++ b/runtime/ops/os/mod.rs @@ -245,7 +245,6 @@ impl From for NetworkInterface { fn op_system_memory_info( state: &mut OpState, ) -> Result, AnyError> { - super::check_unstable(state, "Deno.systemMemoryInfo"); state .borrow_mut::() .sys -- cgit v1.2.3