Skip to content

Conversation

@connyay
Copy link

@connyay connyay commented Nov 8, 2025

Guard Instant::now() usage in Module::freeze() with cfg(not(target_arch = "wasm32")) to prevent runtime panics on WASM targets. On WASM, eval_duration only tracks evaluation time without freeze timing.

Guard Instant::now() usage in Module::freeze() with cfg(not(target_arch = "wasm32")) to prevent runtime panics on WASM targets. On WASM, eval_duration only tracks evaluation time without freeze timing.
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 8, 2025
@connyay
Copy link
Author

connyay commented Nov 8, 2025

This is a bandaid that follows a pattern like 4d32658, but it isn't great and future additions of Instant::now() will continue to break wasm support :-/ like this current open PR #152

connyay@1dbb2de is an alternate to this PR that is a bit more disruptive, but easier to avoid future wasm breakages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant