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

Migrate to web_time::SystemTime for wasm32-unknown-unknown targets #118

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

nekevss
Copy link
Member

@nekevss nekevss commented Nov 28, 2024

See title.

This should allow SystemTime to work on any wasm targets.

@jasonwilliams
Copy link
Member

Looking at https://github.com/boa-dev/temporal/pull/118/files#diff-3e4364fa6f0aed7a40e68aa12a41235e57f45378bcd8f0094496a7c1d8be0ed0 It looks like all targets will end up using this crate? Is that a problem or am I missing something?

@nekevss
Copy link
Member Author

nekevss commented Dec 2, 2024

My understanding from looking at web_time is that it's a drop in replacement for std::time::SystemTime. If the target isn't wasm, web_time just reuses std::time

@jasonwilliams
Copy link
Member

That was my thinking too but wasn’t 100% sure if that’s what’s happening, are we able to confirm it falls back? I guess just by running it right?

@nekevss nekevss merged commit 1fc7c16 into main Dec 4, 2024
5 checks passed
@nekevss nekevss deleted the use-web-time branch December 9, 2024 02:35
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