swc/crates/swc_bundler/tests/fixture/deno-8734/output/entry.ts
2021-11-09 20:42:49 +09:00

24 lines
481 B
TypeScript

const m = "test";
if (!m) {
throw new Error('b');
}
class Comparator {
constructor(comp, optionsOrLoose = {
}){
}
parse(comp1) {
const m = "another";
if (!m) {
throw new TypeError("Invalid comparator: " + comp1);
}
const m1 = m[1];
console.log(m1);
if (!m[2]) {
console.log('other');
}
}
}
const x = new Comparator('boo');
x.parse('test');
export { Comparator as Comparator };