fix args not beign passed to scripts

This commit is contained in:
Olivier Gagnon
2022-07-20 11:34:49 -04:00
parent 28b9c821d2
commit e0a24cf381
2 changed files with 11 additions and 14 deletions
+2
View File
@@ -2596,5 +2596,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
const possibleLogs = Object.fromEntries([...getFunctionNames(ns, "")].map((a) => [a, true]));
const wrappedNS = wrapAPI(helper, {}, workerScript, ns) as unknown as INS;
(wrappedNS as any).args = ns.args;
(wrappedNS as any).enums = ns.enums;
return wrappedNS;
}