fixed throw

makeRuntimeRejectMsg now references correct function causing the throw:
This commit is contained in:
redd
2018-05-13 01:50:13 +01:00
committed by GitHub
parent 1df56cd76d
commit e71b44283b
+1 -1
View File
@@ -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];
},