TypeScript Version: 3.2.1
Search Terms: allowjs comment number numeric literal two dots after comment
Code
file.js
0 /* any comment */.toString();
Run: tsc file.js --allowJS --outFile out.js
Expected behavior:
out.js has the same content as file.js
Actual behavior:
out.js contains the following:
0 /* any comment */..toString();
Which is a syntax error: SyntaxError: Unexpected token .
TypeScript Version: 3.2.1
Search Terms: allowjs comment number numeric literal two dots after comment
Code
file.js
Run:
tsc file.js --allowJS --outFile out.jsExpected behavior:
out.js has the same content as file.js
Actual behavior:
out.js contains the following:
Which is a syntax error:
SyntaxError: Unexpected token .