From e71b44283bdd26150d90dcef6b269a6aff419266 Mon Sep 17 00:00:00 2001 From: redd <37807116+rharvest@users.noreply.github.com> Date: Sun, 13 May 2018 01:50:13 +0100 Subject: [PATCH] fixed throw makeRuntimeRejectMsg now references correct function causing the throw: --- src/NetscriptFunctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions.js b/src/NetscriptFunctions.js index 7b70e036d..5b4e1dbe2 100644 --- a/src/NetscriptFunctions.js +++ b/src/NetscriptFunctions.js @@ -1432,7 +1432,7 @@ function NetscriptFunctions(workerScript) { } var stock = SymbolToStockMap[symbol]; if (stock == null) { - throw makeRuntimeRejectMsg(workerScript, "Invalid stock symbol passed into getStockPrice()"); + throw makeRuntimeRejectMsg(workerScript, "Invalid stock symbol passed into getStockPosition()"); } return [stock.playerShares, stock.playerAvgPx, stock.playerShortShares, stock.playerAvgShortPx]; },