diff --git a/dist/engine.bundle.js b/dist/engine.bundle.js index f1bf07511..b227b0a14 100644 --- a/dist/engine.bundle.js +++ b/dist/engine.bundle.js @@ -26144,6 +26144,8 @@ Script.prototype.saveScript = function() { //Calculate/update ram usage, execution time, etc. this.updateRamUsage(); + + this.module = ""; } } @@ -28582,7 +28584,7 @@ function NetscriptFunctions(workerScript) { } var stock = _StockMarket_js__WEBPACK_IMPORTED_MODULE_19__["SymbolToStockMap"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_23__["makeRuntimeRejectMsg"])(workerScript, "Invalid stock symbol passed into getStockPrice()"); + throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_23__["makeRuntimeRejectMsg"])(workerScript, "Invalid stock symbol passed into getStockPosition()"); } return [stock.playerShares, stock.playerAvgPx, stock.playerShortShares, stock.playerAvgShortPx]; }, diff --git a/dist/tests.bundle.js b/dist/tests.bundle.js index cef3c9e76..666443641 100644 --- a/dist/tests.bundle.js +++ b/dist/tests.bundle.js @@ -26144,6 +26144,8 @@ Script.prototype.saveScript = function() { //Calculate/update ram usage, execution time, etc. this.updateRamUsage(); + + this.module = ""; } } @@ -28582,7 +28584,7 @@ function NetscriptFunctions(workerScript) { } var stock = _StockMarket_js__WEBPACK_IMPORTED_MODULE_19__["SymbolToStockMap"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_23__["makeRuntimeRejectMsg"])(workerScript, "Invalid stock symbol passed into getStockPrice()"); + throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_23__["makeRuntimeRejectMsg"])(workerScript, "Invalid stock symbol passed into getStockPosition()"); } return [stock.playerShares, stock.playerAvgPx, stock.playerShortShares, stock.playerAvgShortPx]; }, diff --git a/src/Script.js b/src/Script.js index 872119e29..d720d7298 100644 --- a/src/Script.js +++ b/src/Script.js @@ -345,6 +345,8 @@ Script.prototype.saveScript = function() { //Calculate/update ram usage, execution time, etc. this.updateRamUsage(); + + this.module = ""; } }