Skip to content

Add leading underscore to implemented functions in wasm_backend #4854

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

Conversation

jgravelle-google
Copy link
Contributor

This caused a fun bug where if your C code used lround, then lround is implemented in terms of round, which is imported from JS. Because we were trimming the leading character that wasn't an underscore, we thought the module already implemented round, and didn't actually import it, which caused the module to fail to instantiate.

Depends on #4813 to fix the printf formatting for test_emscripten_api.

@kripken
Copy link
Member

kripken commented Jan 12, 2017

lgtm

@jgravelle-google jgravelle-google force-pushed the wasm_implemented_funcs_underscore branch from f59df13 to cf56e11 Compare March 14, 2017 21:42
@jgravelle-google jgravelle-google merged commit 8c9a3fd into emscripten-core:incoming Mar 14, 2017
@jgravelle-google jgravelle-google deleted the wasm_implemented_funcs_underscore branch March 14, 2017 21:43
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.

3 participants