summaryrefslogtreecommitdiff
path: root/ext/webstorage/01_webstorage.js
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-10-07 07:59:27 -0700
committerGitHub <noreply@github.com>2024-10-07 07:59:27 -0700
commit9a92603a142f8bc8bfe36d2eec3d1dd86722651b (patch)
tree3532d1c05b2facb5632dccde63cfaf8f173ab4dc /ext/webstorage/01_webstorage.js
parent39a2034967207b89069cf64a76308e1446b1ad26 (diff)
fix(ext/webstorage): make `getOwnPropertyDescriptor` with symbol return `undefined` (#13348)
Closes #13347
Diffstat (limited to 'ext/webstorage/01_webstorage.js')
-rw-r--r--ext/webstorage/01_webstorage.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/webstorage/01_webstorage.js b/ext/webstorage/01_webstorage.js
index 3cbdd708d..9e8636656 100644
--- a/ext/webstorage/01_webstorage.js
+++ b/ext/webstorage/01_webstorage.js
@@ -143,6 +143,9 @@ function createStorage(persistent) {
if (ReflectHas(target, key)) {
return undefined;
}
+ if (typeof key === "symbol") {
+ return undefined;
+ }
const value = target.getItem(key);
if (value === null) {
return undefined;