Simpler demo program

This commit is contained in:
Andrew Morris
2023-03-01 08:57:01 +11:00
parent f7f70bf89f
commit 2d7fb45106

View File

@@ -16,14 +16,10 @@ fn main() {
let fm = cm.new_source_file(
FileName::Custom("test.js".into()),
"
function foo(x: number) {
if (x < 3) {
return 'lt3';
}
return 'nlt3';
}
"
if (x < 3) {
1 + 1;
}
"
.into(),
);
let result = c.parse_js(