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

Transform Math, Reflect and JSON into static namespaces #1451

Merged
merged 3 commits into from
Apr 15, 2019

Conversation

RReverser
Copy link
Member

Inspired by WebAssembly and Intl definitions, I though it would be good to convert these other imports from types to static imports too.

They can't be called or constructed, so, just like in existing cases, they're already pretty useless as regular types. Hence, it shouldn't break any real-world code depending on wasm-bindgen, but still, as shown by removed tests, technically it might be considered a breaking change.

@RReverser
Copy link
Member Author

Fair warning: best to review in no-whitespace diff mode.

@alexcrichton alexcrichton merged commit 526b253 into rustwasm:master Apr 15, 2019
@alexcrichton
Copy link
Contributor

Seems reasonable to me, thanks!

@RReverser RReverser deleted the more-static-namespaces branch April 15, 2019 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants