You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo 'console.log(JSON.stringify(require("os").EOL));' > oseol.cjs ; node oseol.cjs ; bun oseol.cjs
# >>>
# "\n" <-- what node prints (expected)
# "\\n" <-- what bun prints (not expected)
How often does it reproduce? Is there a required condition?
100% reproducible.
What is the expected behavior?
See above.
What do you see instead?
See above.
Additional information
Probably caused by this line here having too many backslashes:
I originally noticed this because it triggered an issue in typescript.transpileModule used by svelte-preprocess, reported here: sveltejs/svelte-preprocess#555
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
0.2.2
What platform is your computer?
Linux
What steps can reproduce the bug?
How often does it reproduce? Is there a required condition?
100% reproducible.
What is the expected behavior?
See above.
What do you see instead?
See above.
Additional information
Probably caused by this line here having too many backslashes:
bun/src/bun.js/node/node_os.zig
Line 48 in 1604666
I originally noticed this because it triggered an issue in typescript.transpileModule used by svelte-preprocess, reported here:
sveltejs/svelte-preprocess#555
The text was updated successfully, but these errors were encountered: