Javascript-obfuscator: Tagged Template Literal break the code

Created on 16 Apr 2018  路  4Comments  路  Source: javascript-obfuscator/javascript-obfuscator

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.

bug fixed waiting for release

All 4 comments

Hi, thank for the bug report. Will fix it in a next few days.

Fix in master branch. Until release you can use version from master branch.

I reopened issue until release

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elderapo picture elderapo  路  3Comments

slig picture slig  路  8Comments

lonewolfyx picture lonewolfyx  路  4Comments

djunique picture djunique  路  3Comments

psabharwal123 picture psabharwal123  路  7Comments