@@ -246,7 +246,7 @@ function tokens2asc(
246
246
typeassert ( i + 1 , [ "num" ] , "variable count" ) ;
247
247
typeassert ( i + 2 , [ "type" ] , "variable type" ) ;
248
248
const cnt = Number ( gettok ( i + 1 , 1 ) ) ;
249
- assert ( `Invalid variable count ${ cnt } ` , pos , Number . isSafeInteger ( cnt ) && cnt >= 0 ) ;
249
+ assert ( `Invalid variable count ${ cnt } ` , pos , Number . isSafeInteger ( cnt ) && cnt > 0 ) ;
250
250
251
251
var x = {
252
252
op : "var" ,
@@ -319,7 +319,7 @@ function tokens2asc(
319
319
typeassert ( i + 1 , [ "type" ] , "argument type" ) ;
320
320
var typ = gettok ( i + 1 , 1 ) ;
321
321
var cnt = Number ( gettok ( i , 1 ) ) ;
322
- assert ( `Invalid argument count ${ cnt } .` , pos , Number . isSafeInteger ( cnt ) && cnt >= 0 ) ;
322
+ assert ( `Invalid argument count ${ cnt } .` , pos , Number . isSafeInteger ( cnt ) && cnt > 0 ) ;
323
323
x . arity += cnt ;
324
324
i += 2 ;
325
325
for ( var j = 0 ; j < cnt ; j ++ ) {
@@ -549,7 +549,7 @@ function tokens2asc(
549
549
} else if ( gettok ( i , 0 ) == "take" ) {
550
550
typeassert ( i + 1 , [ "num" ] , "argument count" ) ;
551
551
const cnt = Number ( gettok ( i + 1 , 1 ) ) ;
552
- assert ( `Invalid argument count ${ cnt } ` , pos , Number . isSafeInteger ( cnt ) && cnt >= 0 ) ;
552
+ assert ( `Invalid argument count ${ cnt } ` , pos , Number . isSafeInteger ( cnt ) && cnt > 0 ) ;
553
553
asc . push ( { op : "take" , count : cnt , pos } ) ;
554
554
i += 2 ;
555
555
} else if ( gettok ( i , 0 ) == "import" && gettok ( i , 1 ) == "file" ) {
0 commit comments