oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.32k stars 2.78k forks source link

raw tagged template literals show escapes for non ascii text #8745

Open paperdave opened 9 months ago

paperdave commented 9 months ago

What version of Bun is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

function what({ raw }) {
  console.log(raw)
}

what`弟気`

What is the expected behavior?

[ '弟気' ]

What do you see instead?

[ "\\u5F1F\\u6C17" ]

Additional information

Related: #7540

drewlesueur commented 7 months ago

A similar issue (https://github.com/oven-sh/bun/issues/9891) seems to be fixed in v1.1.1, however this specific issue is still there.