mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 15:12:27 +01:00
Don't log RAM calculator parse errors. Add semicolons and newlines when importing from URL in NSJS
This commit is contained in:
parent
037b521e02
commit
f86d87fa03
2
dist/engine.bundle.js
vendored
2
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -471,7 +471,7 @@ async function parseOnlyRamCalculate(server, code, workerScript) {
|
|||||||
code = "";
|
code = "";
|
||||||
for (const prop in module) {
|
for (const prop in module) {
|
||||||
if (typeof module[prop] === 'function') {
|
if (typeof module[prop] === 'function') {
|
||||||
code += module[prop].toString();
|
code += module[prop].toString() + ";\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
@ -566,7 +566,7 @@ async function parseOnlyRamCalculate(server, code, workerScript) {
|
|||||||
return ram;
|
return ram;
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.info("parse or eval error: ", error);
|
// console.info("parse or eval error: ", error);
|
||||||
// This is not unexpected. The user may be editing a script, and it may be in
|
// This is not unexpected. The user may be editing a script, and it may be in
|
||||||
// a transitory invalid state.
|
// a transitory invalid state.
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user