This commit is contained in:
Olivier Gagnon
2021-09-25 01:26:03 -04:00
parent 5c6c472b64
commit b0f20c8c8f
33 changed files with 3609 additions and 1217 deletions
+3 -3
View File
@@ -15,9 +15,9 @@ export function netscriptDelay(time: number, workerScript: WorkerScript): Promis
}
export function makeRuntimeRejectMsg(workerScript: WorkerScript, msg: string, exp: any = null) {
var lineNum = "";
let lineNum = "";
if (exp != null) {
var num = getErrorLineNumber(exp, workerScript);
const num = getErrorLineNumber(exp, workerScript);
lineNum = " (Line " + num + ")";
}
const server = AllServers[workerScript.serverIp];
@@ -72,7 +72,7 @@ export function isScriptErrorMessage(msg: string): boolean {
if (!isString(msg)) {
return false;
}
let splitMsg = msg.split("|");
const splitMsg = msg.split("|");
if (splitMsg.length != 4) {
return false;
}