mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
Fix initial stack values (#851)
This commit is contained in:
parent
126fade049
commit
a950ceb99e
1 changed files with 2 additions and 2 deletions
|
|
@ -41,13 +41,13 @@ export function run({ runtime, data, system, log, debugHandler }) {
|
|||
// const logger = log ? printCommand : logger;
|
||||
// TODO: Handle disposing of this.
|
||||
// TODO: Handle passing in variables.
|
||||
variable.hook(method.name, () => {
|
||||
variable.hook(method.name, (...args) => {
|
||||
// Interpret is a generator that yields before each command is exectued.
|
||||
// `handler` is reponsible for `.next()`ing until the program execution is
|
||||
// complete (the generator is "done"). In production this is done
|
||||
// synchronously. In the debugger, if execution is paused, it's done
|
||||
// async.
|
||||
handler(interpret(commandOffset, program, []));
|
||||
handler(interpret(commandOffset, program, args.reverse()));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue