From 7d6947ee01742d3fe6bfcb1bcedda20af800f130 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Sun, 12 Dec 2021 14:57:44 -0500 Subject: [PATCH] fix unknown script die for known reason --- src/NetscriptEvaluator.ts | 3 +-- src/NetscriptWorker.ts | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NetscriptEvaluator.ts b/src/NetscriptEvaluator.ts index 324f5f1a3..8e6f76d2a 100644 --- a/src/NetscriptEvaluator.ts +++ b/src/NetscriptEvaluator.ts @@ -20,8 +20,7 @@ export function makeRuntimeRejectMsg(workerScript: WorkerScript, msg: string): s } for (const url in BlobsMap) { - console.log(url); - // msg = msg.replace(new RegExp(url, "g"), BlobsMap[url]); + msg = msg.replace(new RegExp(url, "g"), BlobsMap[url]); } return "|DELIMITER|" + server.hostname + "|DELIMITER|" + workerScript.name + "|DELIMITER|" + msg; diff --git a/src/NetscriptWorker.ts b/src/NetscriptWorker.ts index ac8b4a600..74885edd2 100644 --- a/src/NetscriptWorker.ts +++ b/src/NetscriptWorker.ts @@ -140,7 +140,8 @@ function startNetscript2Script(workerScript: WorkerScript): Promise