Loading static/js/exercises.api.mjs +3 −2 Original line number Diff line number Diff line /** API to create exercises */ import { getTerminalContents, runCommand } from "./jslinux.api.mjs" import { getTerminalContents, runCommand, runUnexecutedCommand } from "./jslinux.api.mjs" import { arrayEquals } from "./util.mjs" import { getHandInToken } from "./snakeoil.mjs" import { State } from "./state.mjs" Loading Loading @@ -211,7 +211,8 @@ class ExerciseExecutionContext { */ manualConfirmation() { return new Promise((resolve, _) => { this._confirmExerciseCompletion = () => { this._confirmExerciseCompletion = async () => { await runUnexecutedCommand() this._verifyingHandler() resolve() } Loading Loading
static/js/exercises.api.mjs +3 −2 Original line number Diff line number Diff line /** API to create exercises */ import { getTerminalContents, runCommand } from "./jslinux.api.mjs" import { getTerminalContents, runCommand, runUnexecutedCommand } from "./jslinux.api.mjs" import { arrayEquals } from "./util.mjs" import { getHandInToken } from "./snakeoil.mjs" import { State } from "./state.mjs" Loading Loading @@ -211,7 +211,8 @@ class ExerciseExecutionContext { */ manualConfirmation() { return new Promise((resolve, _) => { this._confirmExerciseCompletion = () => { this._confirmExerciseCompletion = async () => { await runUnexecutedCommand() this._verifyingHandler() resolve() } Loading