0
0

🎉 exit command

This commit is contained in:
DrMaxNix 2022-10-02 16:19:36 +02:00
parent ddc51b06ce
commit f457c83553

14
src/command/exit.js Normal file
View File

@ -0,0 +1,14 @@
Juicescript.command_define({
name: "exit",
alias: ["return"],
validate: function(runner){
// count
runner.argument_validate_count(0);
},
execute: function(runner){
// MOVE COMMAND COUNTER TO END OF CURRENT SCOPE //
runner.counter = runner.scope_tree.command.length;
}
});