mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Pause before the first command
This commit is contained in:
parent
ac31fb6801
commit
fe569b8d0b
1 changed files with 4 additions and 4 deletions
|
|
@ -37,6 +37,10 @@ async function interpret(start, program, stack = [], { logger = null }) {
|
|||
let i = start;
|
||||
while (i < commands.length) {
|
||||
const command = commands[i];
|
||||
// Print some debug info
|
||||
if (logger) {
|
||||
await logger({ i, command, stack, variables, program });
|
||||
}
|
||||
|
||||
switch (command.opcode) {
|
||||
// push
|
||||
|
|
@ -279,10 +283,6 @@ async function interpret(start, program, stack = [], { logger = null }) {
|
|||
}
|
||||
|
||||
i++;
|
||||
// Print some debug info
|
||||
if (logger) {
|
||||
await logger({ i, command, stack, variables, program });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue