mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-04-19 08:27:40 +00:00
fixes for updated typescript
This commit is contained in:
@@ -1116,7 +1116,7 @@ export class BASICParser {
|
||||
for (var arrdim of arr.args) {
|
||||
if (arrdim.valtype != 'number')
|
||||
this.compileError(`Array dimensions must be numeric.`, arrdim.$loc);
|
||||
if (isLiteral(arrdim) && arrdim.value < this.opts.defaultArrayBase)
|
||||
if (isLiteral(arrdim) && typeof arrdim.value === 'number' && arrdim.value < this.opts.defaultArrayBase)
|
||||
this.compileError(`An array dimension cannot be less than ${this.opts.defaultArrayBase}.`, arrdim.$loc);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user