mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
24 lines
481 B
TypeScript
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 };
|