Loading static/js/exercises.api.mjs +4 −3 Original line number Diff line number Diff line Loading @@ -154,13 +154,13 @@ class ExerciseExecutionContext { prepareWith(command, keepVisible) { return new Promise((resolve, _) => { function prepareAndResolve() { async function prepareAndResolve() { // Actually prepare and resolve the promise (we get the resolve() function via the closure) if(command !== null) { runCommand(command) await runCommand(command) } if (!keepVisible) { runCommand("clear") await runCommand("clear") } resolve() } Loading Loading @@ -229,6 +229,7 @@ class ExerciseExecutionContext { */ verify(command) { if(command) { // TODO await this, and maybe then remove the timout below runCommand(command) } const verifyHandler = this._verifyHandler Loading Loading
static/js/exercises.api.mjs +4 −3 Original line number Diff line number Diff line Loading @@ -154,13 +154,13 @@ class ExerciseExecutionContext { prepareWith(command, keepVisible) { return new Promise((resolve, _) => { function prepareAndResolve() { async function prepareAndResolve() { // Actually prepare and resolve the promise (we get the resolve() function via the closure) if(command !== null) { runCommand(command) await runCommand(command) } if (!keepVisible) { runCommand("clear") await runCommand("clear") } resolve() } Loading Loading @@ -229,6 +229,7 @@ class ExerciseExecutionContext { */ verify(command) { if(command) { // TODO await this, and maybe then remove the timout below runCommand(command) } const verifyHandler = this._verifyHandler Loading