From f0a3d206422af3177e0f36ed22802c1ccc6f7654 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Fri, 6 Sep 2024 19:52:59 +0900 Subject: fix(runtime): use more null proto objects again (#25040) proceed with #23921 This PR is a preparation for https://github.com/denoland/deno_lint/pull/1307 --------- Signed-off-by: Kenta Moriuchi Co-authored-by: Luca Casonato --- runtime/js/98_global_scope_window.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/js/98_global_scope_window.js') diff --git a/runtime/js/98_global_scope_window.js b/runtime/js/98_global_scope_window.js index aa18ed361..27a3d309a 100644 --- a/runtime/js/98_global_scope_window.js +++ b/runtime/js/98_global_scope_window.js @@ -60,6 +60,7 @@ const language = memoizeLazy(() => op_bootstrap_language()); ObjectDefineProperties(Navigator.prototype, { gpu: { + __proto__: null, configurable: true, enumerable: true, get() { @@ -69,6 +70,7 @@ ObjectDefineProperties(Navigator.prototype, { }, }, hardwareConcurrency: { + __proto__: null, configurable: true, enumerable: true, get() { @@ -77,6 +79,7 @@ ObjectDefineProperties(Navigator.prototype, { }, }, userAgent: { + __proto__: null, configurable: true, enumerable: true, get() { @@ -85,6 +88,7 @@ ObjectDefineProperties(Navigator.prototype, { }, }, language: { + __proto__: null, configurable: true, enumerable: true, get() { @@ -93,6 +97,7 @@ ObjectDefineProperties(Navigator.prototype, { }, }, languages: { + __proto__: null, configurable: true, enumerable: true, get() { -- cgit v1.2.3