File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 384
384
(table 10 funcref )
385
385
(table 10 funcref )
386
386
)
387
+ ;; Can't test values above 2^32 because wast parsing will reject them
388
+ (assert_invalid
389
+ (module
390
+ (import " " " " (table 1 0 funcref ))
391
+ )
392
+ " size minimum must not be greater than maximum"
393
+ )
387
394
388
395
(module (import " test" " table-10-inf" (table 10 funcref )))
389
396
(module (import " test" " table-10-inf" (table 5 funcref )))
496
503
(module (memory 0 ) (memory 0 ))
497
504
" multiple memories"
498
505
)
506
+ (assert_invalid
507
+ (module
508
+ (import " " " " (memory 65537 65538 ))
509
+ )
510
+ " memory size must be at most 65536 pages"
511
+ )
512
+ (assert_invalid
513
+ (module
514
+ (import " " " " (memory 0 65537 ))
515
+ )
516
+ " memory size must be at most 65536 pages"
517
+ )
518
+ (assert_invalid
519
+ (module
520
+ (import " " " " (memory 1 0 ))
521
+ )
522
+ " size minimum must not be greater than maximum"
523
+ )
524
+ (assert_invalid
525
+ (module
526
+ (import " " " " (memory 65537 ))
527
+ )
528
+ " memory size must be at most 65536 pages"
529
+ )
499
530
500
531
(module (import " test" " memory-2-inf" (memory 2 )))
501
532
(module (import " test" " memory-2-inf" (memory 1 )))
You can’t perform that action at this time.
0 commit comments