mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 02:57:30 +00:00
Pause before the first command
This commit is contained in:
parent
d0ceda1520
commit
0690f8cf8d
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