Skip to content

[wasm2js] Fix memory.size#2330

Merged
kripken merged 2 commits intomasterfrom
grow
Sep 6, 2019
Merged

[wasm2js] Fix memory.size#2330
kripken merged 2 commits intomasterfrom
grow

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Sep 5, 2019

We emitted the __wasm_memory_size function only when memory growth was enabled, but it can be used without that too.

In theory we could only emit it if either memory growth or memory.size is used, but I think we can expect JS minifiers to do that later.

Also fix a test suite bug - the check/auto_update script didn't run all the wasm2js tests when you run it with argument wasm2js (it used that as the list of tests, instead of the list of files, which confused me here for a while...).

…ory growth, since it is used by memory.grow() for example
@kripken kripken requested a review from tlively September 5, 2019 00:50
Copy link
Copy Markdown
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

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