Skip to content

Tagged Template Literal break the code #243

@rokoroku

Description

@rokoroku
function tag(strings) {
  console.log(strings.raw[0]);
}
tag`string text line 1 \n string text line 2`;

emits

function tag(_0xe599e4){
  console['log'](_0xe599e4['raw'][0x0]);
}
tag'string\x20text\x20line\x201\x20\x0a\x20string\x20text\x20line\x202';

And above code is not a valid JS Tagged Template Litaral code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions