swc/crates/swc_ecma_parser/tests/tsc/parserNotRegex1.ts

4 lines
121 B
TypeScript

if (a.indexOf(-(4/3))) // We should not get a regex here because of the / in the comment.
{
return true;
}