mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-10 13:11:50 +09:00
minor fixups
This commit is contained in:
@@ -905,7 +905,9 @@ if no arg text were given (e.g. "10 NEXT"), args will have zero length
|
||||
// print out prompt text
|
||||
print("? "); var rh = sys.read().trim();
|
||||
|
||||
if (!isNaN(rh)) rh = rh*1 // if string we got can be cast to number, do it
|
||||
// if string we got can be cast to number, do it
|
||||
// NOTE: empty string will be cast to 0, which corresponds to GW-BASIC
|
||||
if (!isNaN(rh)) rh = rh*1
|
||||
|
||||
if (troValue.arrFull !== undefined) { // assign to existing array
|
||||
if (isNaN(rh) && !Array.isArray(rh)) throw lang.illegalType(lnum, rh);
|
||||
|
||||
Reference in New Issue
Block a user