Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a validation for FrozenArray<dictionary> #798

Open
saschanaz opened this issue Oct 11, 2024 · 0 comments
Open

Add a validation for FrozenArray<dictionary> #798

saschanaz opened this issue Oct 11, 2024 · 0 comments

Comments

@saschanaz
Copy link
Member

saschanaz commented Oct 11, 2024

Highly possible that it won't do what it intended to do. See: whatwg/webidl#1243, w3c/mediasession#343

Using FrozenArray<dictionary> would:

  1. Convert each dictionary to JS object
  2. Make an array with them and freeze the array
  3. Now the attribute returns cached array with JS objects which is not frozen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant