|
@@ -898,7 +898,8 @@ function updateSequenceFunction (oldIndex, newIndex) {
|
|
|
|
|
|
function runCodeAssessment () {
|
|
|
if (isRunning) {
|
|
|
- return;
|
|
|
+ // cannot run assessment or it's already running
|
|
|
+ return -1;
|
|
|
}
|
|
|
|
|
|
let strCode = null;
|
|
@@ -912,7 +913,8 @@ function runCodeAssessment () {
|
|
|
}
|
|
|
|
|
|
if (strCode == null) {
|
|
|
- return;
|
|
|
+ // No code, so no assessment
|
|
|
+ return -1;
|
|
|
}
|
|
|
|
|
|
toggleConsole(true);
|
|
@@ -933,7 +935,7 @@ function runCodeAssessment () {
|
|
|
console.log(err);
|
|
|
isRunning = false;
|
|
|
});
|
|
|
-
|
|
|
+ return 0;
|
|
|
}
|
|
|
|
|
|
function runCode () {
|