summaryrefslogtreecommitdiff
path: root/runtime/js/98_global_scope_window.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/98_global_scope_window.js')
-rw-r--r--runtime/js/98_global_scope_window.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/runtime/js/98_global_scope_window.js b/runtime/js/98_global_scope_window.js
index 42cefdfb0..63b346dd5 100644
--- a/runtime/js/98_global_scope_window.js
+++ b/runtime/js/98_global_scope_window.js
@@ -1,7 +1,11 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { core, primordials } from "ext:core/mod.js";
-const ops = core.ops;
+const {
+ op_bootstrap_language,
+ op_bootstrap_numcpus,
+ op_bootstrap_user_agent,
+} = core.ensureFastOps(true);
const {
ObjectDefineProperties,
ObjectPrototypeIsPrototypeOf,
@@ -51,9 +55,9 @@ function memoizeLazy(f) {
};
}
-const numCpus = memoizeLazy(() => ops.op_bootstrap_numcpus());
-const userAgent = memoizeLazy(() => ops.op_bootstrap_user_agent());
-const language = memoizeLazy(() => ops.op_bootstrap_language());
+const numCpus = memoizeLazy(() => op_bootstrap_numcpus());
+const userAgent = memoizeLazy(() => op_bootstrap_user_agent());
+const language = memoizeLazy(() => op_bootstrap_language());
ObjectDefineProperties(Navigator.prototype, {
gpu: {