bun icon indicating copy to clipboard operation
bun copied to clipboard

String.raw does not work

Open zhuzilin opened this issue 3 years ago • 1 comments

Version

v0.1.7

Platform

No response

What steps will reproduce the bug?

console.log(String.raw`\?`)

How often does it reproduce? Is there a required condition?

always

What is the expected behavior?

\?

What do you see instead?

?

Additional information

relates to #622

zhuzilin avatar Aug 07 '22 14:08 zhuzilin

This is a transpiler bug

The template string is being un-escaped since \? normally is the same is ?

Jarred-Sumner avatar Aug 07 '22 19:08 Jarred-Sumner

This is giving the expected output now:

➜ bun --bun index.ts
\?

birkskyum avatar Aug 26 '23 23:08 birkskyum