fix some weird eval

This commit is contained in:
Olivier Gagnon 2022-01-02 12:13:01 -05:00
parent 1e0e9f7bd7
commit 4fb1dbf2e3

@ -44,7 +44,7 @@ export function resolveNetscriptRequestedThreads(
`Invalid thread count passed to ${functionName}: ${requestedThreads}. Threads must be a positive number.`,
);
}
if (requestedThreads > threads) {
if (requestedThreadsAsInt > threads) {
throw makeRuntimeRejectMsg(
workerScript,
`Too many threads requested by ${functionName}. Requested: ${requestedThreads}. Has: ${threads}.`,