diff options
| author | Colin Ihrig <cjihrig@gmail.com> | 2022-11-09 07:29:24 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-09 13:29:24 +0100 |
| commit | f946806868ad37624ae96d1b31b882216bb80000 (patch) | |
| tree | 83a6bddd2b91dec31b92d2372973a6ac10debe0e /runtime | |
| parent | 9edcab524fef558abce824731e78f83f7aac28dd (diff) | |
feat: stabilize Deno.networkInterfaces() (#16451)
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/js/90_deno_ns.js | 2 | ||||
| -rw-r--r-- | runtime/ops/os/mod.rs | 1 |
2 files changed, 1 insertions, 2 deletions
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<String, AnyError> { fn op_network_interfaces( state: &mut OpState, ) -> Result<Vec<NetworkInterface>, AnyError> { - super::check_unstable(state, "Deno.networkInterfaces"); state .borrow_mut::<Permissions>() .sys |
