* fix(39744): make template literals more spec compliant * Add evaluation test for template literals * Add test for template literals with source map
16 lines
327 B
TypeScript
16 lines
327 B
TypeScript
//// [templateStringInSwitchAndCase.ts]
|
|
switch (`abc${0}abc`) {
|
|
case `abc`:
|
|
case `123`:
|
|
case `abc${0}abc`:
|
|
`def${1}def`;
|
|
}
|
|
|
|
//// [templateStringInSwitchAndCase.js]
|
|
switch ("abc".concat(0, "abc")) {
|
|
case "abc":
|
|
case "123":
|
|
case "abc".concat(0, "abc"):
|
|
"def".concat(1, "def");
|
|
}
|