-
Notifications
You must be signed in to change notification settings - Fork 621
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
fs.ensure_symlink throwing error in browser #6132
Comments
I would have sent a pull request, but I am new to Deno. I'm not confident the error isn't my fault. |
What is the expected behavior of |
If it's imported in a script that runs in both browser and Deno, it throws an error on import. It should instead throw the error when |
Ah, ok. That makes sense to me. |
Describe the bug
On line 8 of ensure_symlink.ts on-import the script checks if the user is on windows (
const isWindows = Deno.build.os === "windows";
). Deno however is undefined in browser throwing a fatal error.Steps to Reproduce
Expected behavior
A check should be done before
Deno.build.os === "windows"
to first check if user is in Deno environment. For example:Environment
The text was updated successfully, but these errors were encountered: