Skip to content

Pass-through file urls to Deno.readFile #2600

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

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

caspervonb
Copy link
Contributor

@caspervonb caspervonb commented Jun 23, 2021

This removes the conversion from URL to string and just passes through the file urls directly to Deno.readFile.
We support taking URLs as an overload in the runtime and when you have one resolved from import.meta, it's better to just pass it through.

See #2296

@alexcrichton
Copy link
Contributor

Thanks!

@alexcrichton alexcrichton merged commit 837e354 into rustwasm:master Jun 23, 2021
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