You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We can actually get all the keys of a Storage using Object.<keys|entries|values>() (Also see here). After #1385, it no longer works and we will seethe following error:
TypeError: 'getOwnPropertyDescriptor'onproxy: trapreportednon-configurabilityforproperty '<key>' which is either non-existent or configurable in the proxy target
motss
changed the title
[StorageFactory] Unable to use Object.keys(sessionStorage) after #1385
[StorageFactory] Unable to use Object.keys|entries|values(sessionStorage) after #1385
Apr 26, 2024
motss
added a commit
to motss/happy-dom
that referenced
this issue
May 1, 2024
Describe the bug
We can actually get all the keys of a
Storage
usingObject.<keys|entries|values>()
(Also see here). After #1385, it no longer works and we will seethe following error:To Reproduce
Simple go to https://stackblitz.com/edit/vitest-dev-vitest-9lccsx and you will see the error in the terminal.
Also a simple code snippet to reproduce the error:
Expected behavior
Object.keys(widow.sessionStorage)
should return a list of keys in thesessionStorage
Screenshots
Device:
Additional context
happy-dom
version:14.7.1
The text was updated successfully, but these errors were encountered: