mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-09 01:06:11 +00:00
Now that we have the beginnings of a parser, let's take the script to run as a command-line argument and move all the test scripts into /home/anon/js :^) To run a script, simply use "js": $ js my-script.js To get an AST dump before execution, you can use "js -A"
8 lines
79 B
JavaScript
8 lines
79 B
JavaScript
var foo = 1;
|
|
function bar() {
|
|
return 38;
|
|
}
|
|
foo = {};
|
|
foo = bar() + 4;
|
|
foo;
|