From f946806868ad37624ae96d1b31b882216bb80000 Mon Sep 17 00:00:00 2001 From: Colin Ihrig Date: Wed, 9 Nov 2022 07:29:24 -0500 Subject: feat: stabilize Deno.networkInterfaces() (#16451) --- 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 69a0ad484..a0587c7f6 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, + networkInterfaces: __bootstrap.os.networkInterfaces, consoleSize: __bootstrap.tty.consoleSize, }; __bootstrap.denoNsUnstable = { DiagnosticCategory: __bootstrap.diagnostics.DiagnosticCategory, systemMemoryInfo: __bootstrap.os.systemMemoryInfo, - networkInterfaces: __bootstrap.os.networkInterfaces, 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 3b4645403..275461cc1 100644 --- a/runtime/ops/os/mod.rs +++ b/runtime/ops/os/mod.rs @@ -190,7 +190,6 @@ fn op_os_release(state: &mut OpState) -> Result { fn op_network_interfaces( state: &mut OpState, ) -> Result, AnyError> { - super::check_unstable(state, "Deno.networkInterfaces"); state .borrow_mut::() .sys -- cgit v1.2.3