Skip to content

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

@paperclover

Description

@paperclover

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtranspilerparser || printer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions