Skip to content

Add getters for WebIDL's dictionaries. #1793

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

Closed
alexlapa opened this issue Sep 25, 2019 · 0 comments · Fixed by #3993
Closed

Add getters for WebIDL's dictionaries. #1793

alexlapa opened this issue Sep 25, 2019 · 0 comments · Fixed by #3993
Labels
web-sys Issues related to the `web-sys` crate

Comments

@alexlapa
Copy link
Contributor

Motivation

Currently web-sys wrappers do not have any getters for WebIDL dictionaries (e.g. MediaStreamConstraints).

Such fields can be accessed using js_sys::Reflect, which is quite awkward.

Proposed Solution

Add getters for WebIDL dictionaries fields.

Alternatives

Some generic getter like: fn get(name:&str) -> JsValue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web-sys Issues related to the `web-sys` crate
Projects
None yet
2 participants