Don't log the "done" promise

This commit is contained in:
Jordan Eldredge 2019-07-14 15:45:20 -07:00
parent 05362da4a3
commit 3798934615

View file

@ -341,9 +341,7 @@ async function interpret(start, program, stack = [], { logger = null }) {
i++;
// Print some debug info
if (logger) {
const done = logger({ i, command, stack, variables, program });
console.log(done);
await done;
await logger({ i, command, stack, variables, program });
}
}
}