mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 19:57:45 +03:00
4d942cc1d0
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"
3 lines
46 B
JavaScript
3 lines
46 B
JavaScript
function foo() { return (1 + 2) + 3; }
|
|
foo();
|