Fixed Netscript interpreter memory issues by breaking promise chains in while and for loops. Improved Stock Market UI. Added a button to kill script from log display box. Added confirm() Netscript function

This commit is contained in:
danielyxie
2017-11-02 16:47:09 -05:00
parent 52967d7f9d
commit bc6f0da677
15 changed files with 753 additions and 354 deletions
+2
View File
@@ -528,6 +528,7 @@ function RunningScript(script, args) {
this.server = script.server; //IP Address only
this.logs = []; //Script logging. Array of strings, with each element being a log entry
this.logUpd = false;
//Stats to display on the Scripts menu, and used to determine offline progress
this.offlineRunningTime = 0.01; //Seconds
@@ -551,6 +552,7 @@ RunningScript.prototype.log = function(txt) {
this.logs.shift();
}
this.logs.push(txt);
this.logUpd = true;
}
RunningScript.prototype.displayLog = function() {