mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 13:57:05 +02:00
fix more any
This commit is contained in:
@@ -84,6 +84,12 @@ export async function executeJSScript(
|
||||
`${script.filename} cannot be run because it does not have a main function.`,
|
||||
);
|
||||
}
|
||||
if (!ns) {
|
||||
throw makeRuntimeRejectMsg(
|
||||
workerScript,
|
||||
`${script.filename} cannot be run because the NS object hasn't been constructed properly.`,
|
||||
);
|
||||
}
|
||||
return loadedModule.main(ns);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user