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 --- ext/webstorage/01_webstorage.js | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/webstorage') diff --git a/ext/webstorage/01_webstorage.js b/ext/webstorage/01_webstorage.js index 635e80d6e..3cbdd708d 100644 --- a/ext/webstorage/01_webstorage.js +++ b/ext/webstorage/01_webstorage.js @@ -119,6 +119,7 @@ function createStorage(persistent) { set(target, key, value) { if (typeof key === "symbol") { return ReflectDefineProperty(target, key, { + __proto__: null, value, configurable: true, }); -- cgit v1.2.3