mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-13 22:46:06 +09:00
basic: DEFUN can call other DEFUN (different from currying it, currying would return a function, but calling would return a value)
This commit is contained in:
@@ -27,15 +27,15 @@ if (r == 0){
|
||||
let g=com.pullMessage(0);
|
||||
let execAppPrg = eval("var _appStub=function(exec_args){"+g+"};_appStub;"); // making 'exec_args' a app-level global
|
||||
execAppPrg();
|
||||
return 0;
|
||||
}
|
||||
catch (e) {
|
||||
printerrln("\nApp Execution Error: "+(e.stack || e));
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
printerrln("I/O Error");
|
||||
}
|
||||
else
|
||||
printerrln("No bootable medium found.");
|
||||
printerrln("No bootable medium found.");
|
||||
|
||||
println("CPU halted");
|
||||
Reference in New Issue
Block a user