summaryrefslogtreecommitdiff
path: root/runtime/js/30_os.js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2022-01-24 18:39:28 +0900
committerGitHub <noreply@github.com>2022-01-24 18:39:28 +0900
commitd08da942339b86b2458ab06585e2f6e4ed30647b (patch)
tree785e980e09b9ebd7e0f60fda4053e014572229e9 /runtime/js/30_os.js
parent1a3983a538e8609eff362a1231d50a2182691a73 (diff)
feat(unstable): add Deno.networkInterfaces (#13475)
Diffstat (limited to 'runtime/js/30_os.js')
-rw-r--r--runtime/js/30_os.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js
index 4c3c18846..38b0acb32 100644
--- a/runtime/js/30_os.js
+++ b/runtime/js/30_os.js
@@ -24,6 +24,10 @@
return core.opSync("op_system_memory_info");
}
+ function networkInterfaces() {
+ return core.opSync("op_network_interfaces");
+ }
+
// This is an internal only method used by the test harness to override the
// behavior of exit when the exit sanitizer is enabled.
let exitHandler = null;
@@ -89,5 +93,6 @@
systemMemoryInfo,
hostname,
loadavg,
+ networkInterfaces,
};
})(this);