summaryrefslogtreecommitdiff
path: root/runtime/js/30_os.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2021-07-30 01:15:11 +0530
committerGitHub <noreply@github.com>2021-07-29 21:45:11 +0200
commit2b13bb694532904704c16bec4e8a47c386e681e2 (patch)
tree0021131ce86873a5aa965d79b99185b3ca5c5aff /runtime/js/30_os.js
parenteece46f0d85faa90c97841a4f409be39272e809b (diff)
feat(runtime): implement navigator.hardwareConcurrency (#11448)
This commit implements "navigator.hardwareConcurrency" API, which supersedes "Deno.systemCpuInfo()" API (which was removed in this commit).
Diffstat (limited to 'runtime/js/30_os.js')
-rw-r--r--runtime/js/30_os.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js
index afb5aa4e0..f026940ca 100644
--- a/runtime/js/30_os.js
+++ b/runtime/js/30_os.js
@@ -24,15 +24,6 @@
return core.opSync("op_system_memory_info");
}
- function systemCpuInfo() {
- const { cores, speed } = core.opSync("op_system_cpu_info");
- // Map nulls to undefined for compatibility
- return {
- cores: cores ?? undefined,
- speed: speed ?? undefined,
- };
- }
-
// 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,7 +80,6 @@
exit,
osRelease,
systemMemoryInfo,
- systemCpuInfo,
hostname,
loadavg,
};