quit function
Provides a quit() function that immediately halts script execution and exits with the given return code.
returnCode int -> int
Example
quit(1);
Implementation
Function quit(VM vm) => (args) {
_arityCheck(1, args.length);
_numberTypeCheck(args[0]);
final code = args[0] as int;
vm.returnCode = code;
vm.halt = true;
return code;
};