From 5f41226c2111f101bba2f3add7968ce0ff1adf0d Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Fri, 26 Aug 2022 17:49:27 -0400 Subject: [PATCH] Fix scp and write in ns1 --- src/NetscriptWorker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptWorker.ts b/src/NetscriptWorker.ts index cff1b83d2..f7ce6e009 100644 --- a/src/NetscriptWorker.ts +++ b/src/NetscriptWorker.ts @@ -124,7 +124,7 @@ function startNetscript1Script(workerScript: WorkerScript): Promise { const entry = ns[name]; if (typeof entry === "function") { //Async functions need to be wrapped. See JS-Interpreter documentation - const asyncFuncs = ["hack", "grow", "weaken", "sleep", "prompt", "manualHack", "scp", "write", "share", "wget"]; + const asyncFuncs = ["hack", "grow", "weaken", "sleep", "prompt", "manualHack", "share", "wget"]; if (asyncFuncs.includes(name)) { const tempWrapper = function (...args: unknown[]): void {