@@ -249,6 +249,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) {
|
|||||||
if (peek() == "{") {
|
if (peek() == "{") {
|
||||||
next();
|
next();
|
||||||
strings.push(s);
|
strings.push(s);
|
||||||
|
S.regex_allowed = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -283,3 +283,18 @@ issue_4606: {
|
|||||||
expect_stdout: "undefined \r \\ `"
|
expect_stdout: "undefined \r \\ `"
|
||||||
node_version: ">=4"
|
node_version: ">=4"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_4630: {
|
||||||
|
options = {
|
||||||
|
evaluate: true,
|
||||||
|
templates: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
console.log(`${/PASS/}`);
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
console.log("/PASS/");
|
||||||
|
}
|
||||||
|
expect_stdout: "/PASS/"
|
||||||
|
node_version: ">=4"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user