Skip to content

add option to retain unicode escapes in codegen #20355

@nathanwhit

Description

@nathanwhit

Currently, as far as I can tell, codegen always turns unicode escapes into literal unicode characters.

For instance,

const foo = "\u{123}"

becomes

const foo = "ģ"

This is problematic in cases where we need to the output to be ASCII only, as even if the input is ASCII, after transpiling the result is not ASCII.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions