diff options
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/30_os.js | 5 | ||||
-rw-r--r-- | runtime/js/90_deno_ns.js | 1 |
2 files changed, 6 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); diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index d93ea4c54..93e46b61e 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -121,6 +121,7 @@ hostname: __bootstrap.os.hostname, osRelease: __bootstrap.os.osRelease, systemMemoryInfo: __bootstrap.os.systemMemoryInfo, + networkInterfaces: __bootstrap.os.networkInterfaces, applySourceMap: __bootstrap.errorStack.opApplySourceMap, formatDiagnostics: __bootstrap.errorStack.opFormatDiagnostics, sleepSync: __bootstrap.timers.sleepSync, |