mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Simpler demo program
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user