TypeScript: add test case with mixed rescanned tokens

This commit is contained in:
Asger F
2018-10-02 10:42:33 +01:00
parent d3a1df644c
commit 057af7c865
2 changed files with 10 additions and 0 deletions

View File

@@ -6,6 +6,10 @@
| greaterThanTS.ts:8 | console . log ( x >= 1 ) ; |
| greaterThanTS.ts:9 | console . log ( x >= 1 ) ; |
| greaterThanTS.ts:10 | console . log ( x >= 1 ) ; |
| mixed.ts:2 | console . log ( x >= 1 ) ; |
| mixed.ts:3 | console . log ( `${ /r/g >= 1 }` ) ; |
| mixed.ts:4 | console . log ( /r/g ) ; |
| mixed.ts:5 | console . log ( `${ 1 }${ 1 }` ) ; |
| regexpTS.ts:2 | console . log ( /foo/g ) ; |
| regexpTS.ts:3 | console . log ( /foo/g ) ; |
| templateLiteralsJS.js:2 | console . log ( ` template~without~placeholders ` ) ; |

View File

@@ -0,0 +1,6 @@
function f(x) {
console.log(x >= 1);
console.log(`${/r/g >= 1}`);
console.log( /r/g);
console.log( `${1}${1}`);
}