Debian Codegraph @

tests/snapshots/testsuite/proposals/threads/imports.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/proposals/threads/imports.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 3,
7 "filename": "imports.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "register",
12 "line": 19,
13 "as": "test"
14 },
15 {
16 "type": "module",
17 "line": 24,
18 "filename": "imports.1.wasm",
19 "module_type": "binary"
20 },
21 {
22 "type": "assert_return",
23 "line": 87,
24 "action": {
25 "type": "invoke",
26 "field": "print32",
27 "args": [
28 {
29 "type": "i32",
30 "value": "13"
31 }
32 ]
33 },
34 "expected": []
35 },
36 {
37 "type": "assert_return",
38 "line": 88,
39 "action": {
40 "type": "invoke",
41 "field": "print64",
42 "args": [
43 {
44 "type": "i64",
45 "value": "24"
46 }
47 ]
48 },
49 "expected": []
50 },
51 {
52 "type": "assert_invalid",
53 "line": 91,
54 "filename": "imports.2.wasm",
55 "module_type": "binary",
56 "text": "unknown type"
57 },
58 {
59 "type": "module",
60 "line": 98,
61 "filename": "imports.3.wasm",
62 "module_type": "binary"
63 },
64 {
65 "type": "module",
66 "line": 99,
67 "filename": "imports.4.wasm",
68 "module_type": "binary"
69 },
70 {
71 "type": "module",
72 "line": 100,
73 "filename": "imports.5.wasm",
74 "module_type": "binary"
75 },
76 {
77 "type": "module",
78 "line": 101,
79 "filename": "imports.6.wasm",
80 "module_type": "binary"
81 },
82 {
83 "type": "module",
84 "line": 102,
85 "filename": "imports.7.wasm",
86 "module_type": "binary"
87 },
88 {
89 "type": "module",
90 "line": 103,
91 "filename": "imports.8.wasm",
92 "module_type": "binary"
93 },
94 {
95 "type": "module",
96 "line": 104,
97 "filename": "imports.9.wasm",
98 "module_type": "binary"
99 },
100 {
101 "type": "assert_unlinkable",
102 "line": 107,
103 "filename": "imports.10.wasm",
104 "module_type": "binary",
105 "text": "unknown import"
106 },
107 {
108 "type": "assert_unlinkable",
109 "line": 111,
110 "filename": "imports.11.wasm",
111 "module_type": "binary",
112 "text": "unknown import"
113 },
114 {
115 "type": "assert_unlinkable",
116 "line": 116,
117 "filename": "imports.12.wasm",
118 "module_type": "binary",
119 "text": "incompatible import type"
120 },
121 {
122 "type": "assert_unlinkable",
123 "line": 120,
124 "filename": "imports.13.wasm",
125 "module_type": "binary",
126 "text": "incompatible import type"
127 },
128 {
129 "type": "assert_unlinkable",
130 "line": 124,
131 "filename": "imports.14.wasm",
132 "module_type": "binary",
133 "text": "incompatible import type"
134 },
135 {
136 "type": "assert_unlinkable",
137 "line": 128,
138 "filename": "imports.15.wasm",
139 "module_type": "binary",
140 "text": "incompatible import type"
141 },
142 {
143 "type": "assert_unlinkable",
144 "line": 132,
145 "filename": "imports.16.wasm",
146 "module_type": "binary",
147 "text": "incompatible import type"
148 },
149 {
150 "type": "assert_unlinkable",
151 "line": 136,
152 "filename": "imports.17.wasm",
153 "module_type": "binary",
154 "text": "incompatible import type"
155 },
156 {
157 "type": "assert_unlinkable",
158 "line": 140,
159 "filename": "imports.18.wasm",
160 "module_type": "binary",
161 "text": "incompatible import type"
162 },
163 {
164 "type": "assert_unlinkable",
165 "line": 144,
166 "filename": "imports.19.wasm",
167 "module_type": "binary",
168 "text": "incompatible import type"
169 },
170 {
171 "type": "assert_unlinkable",
172 "line": 148,
173 "filename": "imports.20.wasm",
174 "module_type": "binary",
175 "text": "incompatible import type"
176 },
177 {
178 "type": "assert_unlinkable",
179 "line": 152,
180 "filename": "imports.21.wasm",
181 "module_type": "binary",
182 "text": "incompatible import type"
183 },
184 {
185 "type": "assert_unlinkable",
186 "line": 156,
187 "filename": "imports.22.wasm",
188 "module_type": "binary",
189 "text": "incompatible import type"
190 },
191 {
192 "type": "assert_unlinkable",
193 "line": 160,
194 "filename": "imports.23.wasm",
195 "module_type": "binary",
196 "text": "incompatible import type"
197 },
198 {
199 "type": "assert_unlinkable",
200 "line": 164,
201 "filename": "imports.24.wasm",
202 "module_type": "binary",
203 "text": "incompatible import type"
204 },
205 {
206 "type": "assert_unlinkable",
207 "line": 168,
208 "filename": "imports.25.wasm",
209 "module_type": "binary",
210 "text": "incompatible import type"
211 },
212 {
213 "type": "assert_unlinkable",
214 "line": 172,
215 "filename": "imports.26.wasm",
216 "module_type": "binary",
217 "text": "incompatible import type"
218 },
219 {
220 "type": "assert_unlinkable",
221 "line": 176,
222 "filename": "imports.27.wasm",
223 "module_type": "binary",
224 "text": "incompatible import type"
225 },
226 {
227 "type": "assert_unlinkable",
228 "line": 181,
229 "filename": "imports.28.wasm",
230 "module_type": "binary",
231 "text": "incompatible import type"
232 },
233 {
234 "type": "assert_unlinkable",
235 "line": 185,
236 "filename": "imports.29.wasm",
237 "module_type": "binary",
238 "text": "incompatible import type"
239 },
240 {
241 "type": "assert_unlinkable",
242 "line": 189,
243 "filename": "imports.30.wasm",
244 "module_type": "binary",
245 "text": "incompatible import type"
246 },
247 {
248 "type": "assert_unlinkable",
249 "line": 193,
250 "filename": "imports.31.wasm",
251 "module_type": "binary",
252 "text": "incompatible import type"
253 },
254 {
255 "type": "assert_unlinkable",
256 "line": 197,
257 "filename": "imports.32.wasm",
258 "module_type": "binary",
259 "text": "incompatible import type"
260 },
261 {
262 "type": "assert_unlinkable",
263 "line": 201,
264 "filename": "imports.33.wasm",
265 "module_type": "binary",
266 "text": "incompatible import type"
267 },
268 {
269 "type": "module",
270 "line": 208,
271 "filename": "imports.34.wasm",
272 "module_type": "binary"
273 },
274 {
275 "type": "assert_return",
276 "line": 226,
277 "action": {
278 "type": "invoke",
279 "field": "get-0",
280 "args": []
281 },
282 "expected": [
283 {
284 "type": "i32",
285 "value": "666"
286 }
287 ]
288 },
289 {
290 "type": "assert_return",
291 "line": 227,
292 "action": {
293 "type": "invoke",
294 "field": "get-1",
295 "args": []
296 },
297 "expected": [
298 {
299 "type": "i32",
300 "value": "666"
301 }
302 ]
303 },
304 {
305 "type": "assert_return",
306 "line": 228,
307 "action": {
308 "type": "invoke",
309 "field": "get-x",
310 "args": []
311 },
312 "expected": [
313 {
314 "type": "i32",
315 "value": "666"
316 }
317 ]
318 },
319 {
320 "type": "assert_return",
321 "line": 229,
322 "action": {
323 "type": "invoke",
324 "field": "get-y",
325 "args": []
326 },
327 "expected": [
328 {
329 "type": "i32",
330 "value": "666"
331 }
332 ]
333 },
334 {
335 "type": "module",
336 "line": 231,
337 "filename": "imports.35.wasm",
338 "module_type": "binary"
339 },
340 {
341 "type": "module",
342 "line": 232,
343 "filename": "imports.36.wasm",
344 "module_type": "binary"
345 },
346 {
347 "type": "assert_unlinkable",
348 "line": 235,
349 "filename": "imports.37.wasm",
350 "module_type": "binary",
351 "text": "unknown import"
352 },
353 {
354 "type": "assert_unlinkable",
355 "line": 239,
356 "filename": "imports.38.wasm",
357 "module_type": "binary",
358 "text": "unknown import"
359 },
360 {
361 "type": "assert_unlinkable",
362 "line": 244,
363 "filename": "imports.39.wasm",
364 "module_type": "binary",
365 "text": "incompatible import type"
366 },
367 {
368 "type": "assert_unlinkable",
369 "line": 248,
370 "filename": "imports.40.wasm",
371 "module_type": "binary",
372 "text": "incompatible import type"
373 },
374 {
375 "type": "assert_unlinkable",
376 "line": 252,
377 "filename": "imports.41.wasm",
378 "module_type": "binary",
379 "text": "incompatible import type"
380 },
381 {
382 "type": "assert_unlinkable",
383 "line": 256,
384 "filename": "imports.42.wasm",
385 "module_type": "binary",
386 "text": "incompatible import type"
387 },
388 {
389 "type": "assert_unlinkable",
390 "line": 260,
391 "filename": "imports.43.wasm",
392 "module_type": "binary",
393 "text": "incompatible import type"
394 },
395 {
396 "type": "assert_unlinkable",
397 "line": 264,
398 "filename": "imports.44.wasm",
399 "module_type": "binary",
400 "text": "incompatible import type"
401 },
402 {
403 "type": "module",
404 "line": 271,
405 "filename": "imports.45.wasm",
406 "module_type": "binary"
407 },
408 {
409 "type": "assert_trap",
410 "line": 283,
411 "action": {
412 "type": "invoke",
413 "field": "call",
414 "args": [
415 {
416 "type": "i32",
417 "value": "0"
418 }
419 ]
420 },
421 "text": "uninitialized element"
422 },
423 {
424 "type": "assert_return",
425 "line": 284,
426 "action": {
427 "type": "invoke",
428 "field": "call",
429 "args": [
430 {
431 "type": "i32",
432 "value": "1"
433 }
434 ]
435 },
436 "expected": [
437 {
438 "type": "i32",
439 "value": "11"
440 }
441 ]
442 },
443 {
444 "type": "assert_return",
445 "line": 285,
446 "action": {
447 "type": "invoke",
448 "field": "call",
449 "args": [
450 {
451 "type": "i32",
452 "value": "2"
453 }
454 ]
455 },
456 "expected": [
457 {
458 "type": "i32",
459 "value": "22"
460 }
461 ]
462 },
463 {
464 "type": "assert_trap",
465 "line": 286,
466 "action": {
467 "type": "invoke",
468 "field": "call",
469 "args": [
470 {
471 "type": "i32",
472 "value": "3"
473 }
474 ]
475 },
476 "text": "uninitialized element"
477 },
478 {
479 "type": "assert_trap",
480 "line": 287,
481 "action": {
482 "type": "invoke",
483 "field": "call",
484 "args": [
485 {
486 "type": "i32",
487 "value": "100"
488 }
489 ]
490 },
491 "text": "undefined element"
492 },
493 {
494 "type": "module",
495 "line": 290,
496 "filename": "imports.46.wasm",
497 "module_type": "binary"
498 },
499 {
500 "type": "assert_trap",
501 "line": 302,
502 "action": {
503 "type": "invoke",
504 "field": "call",
505 "args": [
506 {
507 "type": "i32",
508 "value": "0"
509 }
510 ]
511 },
512 "text": "uninitialized element"
513 },
514 {
515 "type": "assert_return",
516 "line": 303,
517 "action": {
518 "type": "invoke",
519 "field": "call",
520 "args": [
521 {
522 "type": "i32",
523 "value": "1"
524 }
525 ]
526 },
527 "expected": [
528 {
529 "type": "i32",
530 "value": "11"
531 }
532 ]
533 },
534 {
535 "type": "assert_return",
536 "line": 304,
537 "action": {
538 "type": "invoke",
539 "field": "call",
540 "args": [
541 {
542 "type": "i32",
543 "value": "2"
544 }
545 ]
546 },
547 "expected": [
548 {
549 "type": "i32",
550 "value": "22"
551 }
552 ]
553 },
554 {
555 "type": "assert_trap",
556 "line": 305,
557 "action": {
558 "type": "invoke",
559 "field": "call",
560 "args": [
561 {
562 "type": "i32",
563 "value": "3"
564 }
565 ]
566 },
567 "text": "uninitialized element"
568 },
569 {
570 "type": "assert_trap",
571 "line": 306,
572 "action": {
573 "type": "invoke",
574 "field": "call",
575 "args": [
576 {
577 "type": "i32",
578 "value": "100"
579 }
580 ]
581 },
582 "text": "undefined element"
583 },
584 {
585 "type": "assert_invalid",
586 "line": 310,
587 "filename": "imports.47.wasm",
588 "module_type": "binary",
589 "text": "multiple tables"
590 },
591 {
592 "type": "assert_invalid",
593 "line": 314,
594 "filename": "imports.48.wasm",
595 "module_type": "binary",
596 "text": "multiple tables"
597 },
598 {
599 "type": "assert_invalid",
600 "line": 318,
601 "filename": "imports.49.wasm",
602 "module_type": "binary",
603 "text": "multiple tables"
604 },
605 {
606 "type": "module",
607 "line": 322,
608 "filename": "imports.50.wasm",
609 "module_type": "binary"
610 },
611 {
612 "type": "module",
613 "line": 323,
614 "filename": "imports.51.wasm",
615 "module_type": "binary"
616 },
617 {
618 "type": "module",
619 "line": 324,
620 "filename": "imports.52.wasm",
621 "module_type": "binary"
622 },
623 {
624 "type": "module",
625 "line": 325,
626 "filename": "imports.53.wasm",
627 "module_type": "binary"
628 },
629 {
630 "type": "module",
631 "line": 326,
632 "filename": "imports.54.wasm",
633 "module_type": "binary"
634 },
635 {
636 "type": "module",
637 "line": 327,
638 "filename": "imports.55.wasm",
639 "module_type": "binary"
640 },
641 {
642 "type": "module",
643 "line": 328,
644 "filename": "imports.56.wasm",
645 "module_type": "binary"
646 },
647 {
648 "type": "module",
649 "line": 329,
650 "filename": "imports.57.wasm",
651 "module_type": "binary"
652 },
653 {
654 "type": "module",
655 "line": 330,
656 "filename": "imports.58.wasm",
657 "module_type": "binary"
658 },
659 {
660 "type": "module",
661 "line": 331,
662 "filename": "imports.59.wasm",
663 "module_type": "binary"
664 },
665 {
666 "type": "module",
667 "line": 332,
668 "filename": "imports.60.wasm",
669 "module_type": "binary"
670 },
671 {
672 "type": "assert_unlinkable",
673 "line": 335,
674 "filename": "imports.61.wasm",
675 "module_type": "binary",
676 "text": "unknown import"
677 },
678 {
679 "type": "assert_unlinkable",
680 "line": 339,
681 "filename": "imports.62.wasm",
682 "module_type": "binary",
683 "text": "unknown import"
684 },
685 {
686 "type": "assert_unlinkable",
687 "line": 344,
688 "filename": "imports.63.wasm",
689 "module_type": "binary",
690 "text": "incompatible import type"
691 },
692 {
693 "type": "assert_unlinkable",
694 "line": 348,
695 "filename": "imports.64.wasm",
696 "module_type": "binary",
697 "text": "incompatible import type"
698 },
699 {
700 "type": "assert_unlinkable",
701 "line": 352,
702 "filename": "imports.65.wasm",
703 "module_type": "binary",
704 "text": "incompatible import type"
705 },
706 {
707 "type": "assert_unlinkable",
708 "line": 356,
709 "filename": "imports.66.wasm",
710 "module_type": "binary",
711 "text": "incompatible import type"
712 },
713 {
714 "type": "assert_unlinkable",
715 "line": 361,
716 "filename": "imports.67.wasm",
717 "module_type": "binary",
718 "text": "incompatible import type"
719 },
720 {
721 "type": "assert_unlinkable",
722 "line": 365,
723 "filename": "imports.68.wasm",
724 "module_type": "binary",
725 "text": "incompatible import type"
726 },
727 {
728 "type": "assert_unlinkable",
729 "line": 369,
730 "filename": "imports.69.wasm",
731 "module_type": "binary",
732 "text": "incompatible import type"
733 },
734 {
735 "type": "assert_unlinkable",
736 "line": 373,
737 "filename": "imports.70.wasm",
738 "module_type": "binary",
739 "text": "incompatible import type"
740 },
741 {
742 "type": "module",
743 "line": 381,
744 "filename": "imports.71.wasm",
745 "module_type": "binary"
746 },
747 {
748 "type": "assert_return",
749 "line": 388,
750 "action": {
751 "type": "invoke",
752 "field": "load",
753 "args": [
754 {
755 "type": "i32",
756 "value": "0"
757 }
758 ]
759 },
760 "expected": [
761 {
762 "type": "i32",
763 "value": "0"
764 }
765 ]
766 },
767 {
768 "type": "assert_return",
769 "line": 389,
770 "action": {
771 "type": "invoke",
772 "field": "load",
773 "args": [
774 {
775 "type": "i32",
776 "value": "10"
777 }
778 ]
779 },
780 "expected": [
781 {
782 "type": "i32",
783 "value": "16"
784 }
785 ]
786 },
787 {
788 "type": "assert_return",
789 "line": 390,
790 "action": {
791 "type": "invoke",
792 "field": "load",
793 "args": [
794 {
795 "type": "i32",
796 "value": "8"
797 }
798 ]
799 },
800 "expected": [
801 {
802 "type": "i32",
803 "value": "1048576"
804 }
805 ]
806 },
807 {
808 "type": "assert_trap",
809 "line": 391,
810 "action": {
811 "type": "invoke",
812 "field": "load",
813 "args": [
814 {
815 "type": "i32",
816 "value": "1000000"
817 }
818 ]
819 },
820 "text": "out of bounds memory access"
821 },
822 {
823 "type": "module",
824 "line": 393,
825 "filename": "imports.72.wasm",
826 "module_type": "binary"
827 },
828 {
829 "type": "assert_return",
830 "line": 399,
831 "action": {
832 "type": "invoke",
833 "field": "load",
834 "args": [
835 {
836 "type": "i32",
837 "value": "0"
838 }
839 ]
840 },
841 "expected": [
842 {
843 "type": "i32",
844 "value": "0"
845 }
846 ]
847 },
848 {
849 "type": "assert_return",
850 "line": 400,
851 "action": {
852 "type": "invoke",
853 "field": "load",
854 "args": [
855 {
856 "type": "i32",
857 "value": "10"
858 }
859 ]
860 },
861 "expected": [
862 {
863 "type": "i32",
864 "value": "16"
865 }
866 ]
867 },
868 {
869 "type": "assert_return",
870 "line": 401,
871 "action": {
872 "type": "invoke",
873 "field": "load",
874 "args": [
875 {
876 "type": "i32",
877 "value": "8"
878 }
879 ]
880 },
881 "expected": [
882 {
883 "type": "i32",
884 "value": "1048576"
885 }
886 ]
887 },
888 {
889 "type": "assert_trap",
890 "line": 402,
891 "action": {
892 "type": "invoke",
893 "field": "load",
894 "args": [
895 {
896 "type": "i32",
897 "value": "1000000"
898 }
899 ]
900 },
901 "text": "out of bounds memory access"
902 },
903 {
904 "type": "assert_invalid",
905 "line": 405,
906 "filename": "imports.73.wasm",
907 "module_type": "binary",
908 "text": "multiple memories"
909 },
910 {
911 "type": "assert_invalid",
912 "line": 409,
913 "filename": "imports.74.wasm",
914 "module_type": "binary",
915 "text": "multiple memories"
916 },
917 {
918 "type": "assert_invalid",
919 "line": 413,
920 "filename": "imports.75.wasm",
921 "module_type": "binary",
922 "text": "multiple memories"
923 },
924 {
925 "type": "module",
926 "line": 417,
927 "filename": "imports.76.wasm",
928 "module_type": "binary"
929 },
930 {
931 "type": "module",
932 "line": 418,
933 "filename": "imports.77.wasm",
934 "module_type": "binary"
935 },
936 {
937 "type": "module",
938 "line": 419,
939 "filename": "imports.78.wasm",
940 "module_type": "binary"
941 },
942 {
943 "type": "module",
944 "line": 420,
945 "filename": "imports.79.wasm",
946 "module_type": "binary"
947 },
948 {
949 "type": "module",
950 "line": 421,
951 "filename": "imports.80.wasm",
952 "module_type": "binary"
953 },
954 {
955 "type": "module",
956 "line": 422,
957 "filename": "imports.81.wasm",
958 "module_type": "binary"
959 },
960 {
961 "type": "module",
962 "line": 423,
963 "filename": "imports.82.wasm",
964 "module_type": "binary"
965 },
966 {
967 "type": "module",
968 "line": 424,
969 "filename": "imports.83.wasm",
970 "module_type": "binary"
971 },
972 {
973 "type": "module",
974 "line": 425,
975 "filename": "imports.84.wasm",
976 "module_type": "binary"
977 },
978 {
979 "type": "assert_unlinkable",
980 "line": 428,
981 "filename": "imports.85.wasm",
982 "module_type": "binary",
983 "text": "unknown import"
984 },
985 {
986 "type": "assert_unlinkable",
987 "line": 432,
988 "filename": "imports.86.wasm",
989 "module_type": "binary",
990 "text": "unknown import"
991 },
992 {
993 "type": "assert_unlinkable",
994 "line": 437,
995 "filename": "imports.87.wasm",
996 "module_type": "binary",
997 "text": "incompatible import type"
998 },
999 {
1000 "type": "assert_unlinkable",
1001 "line": 441,
1002 "filename": "imports.88.wasm",
1003 "module_type": "binary",
1004 "text": "incompatible import type"
1005 },
1006 {
1007 "type": "assert_unlinkable",
1008 "line": 445,
1009 "filename": "imports.89.wasm",
1010 "module_type": "binary",
1011 "text": "incompatible import type"
1012 },
1013 {
1014 "type": "assert_unlinkable",
1015 "line": 449,
1016 "filename": "imports.90.wasm",
1017 "module_type": "binary",
1018 "text": "incompatible import type"
1019 },
1020 {
1021 "type": "assert_unlinkable",
1022 "line": 454,
1023 "filename": "imports.91.wasm",
1024 "module_type": "binary",
1025 "text": "incompatible import type"
1026 },
1027 {
1028 "type": "assert_unlinkable",
1029 "line": 458,
1030 "filename": "imports.92.wasm",
1031 "module_type": "binary",
1032 "text": "incompatible import type"
1033 },
1034 {
1035 "type": "assert_unlinkable",
1036 "line": 462,
1037 "filename": "imports.93.wasm",
1038 "module_type": "binary",
1039 "text": "incompatible import type"
1040 },
1041 {
1042 "type": "assert_unlinkable",
1043 "line": 466,
1044 "filename": "imports.94.wasm",
1045 "module_type": "binary",
1046 "text": "incompatible import type"
1047 },
1048 {
1049 "type": "assert_unlinkable",
1050 "line": 470,
1051 "filename": "imports.95.wasm",
1052 "module_type": "binary",
1053 "text": "incompatible import type"
1054 },
1055 {
1056 "type": "assert_unlinkable",
1057 "line": 474,
1058 "filename": "imports.96.wasm",
1059 "module_type": "binary",
1060 "text": "incompatible import type"
1061 },
1062 {
1063 "type": "assert_unlinkable",
1064 "line": 479,
1065 "filename": "imports.97.wasm",
1066 "module_type": "binary",
1067 "text": "incompatible import type"
1068 },
1069 {
1070 "type": "assert_unlinkable",
1071 "line": 483,
1072 "filename": "imports.98.wasm",
1073 "module_type": "binary",
1074 "text": "incompatible import type"
1075 },
1076 {
1077 "type": "module",
1078 "line": 487,
1079 "filename": "imports.99.wasm",
1080 "module_type": "binary"
1081 },
1082 {
1083 "type": "assert_return",
1084 "line": 491,
1085 "action": {
1086 "type": "invoke",
1087 "field": "grow",
1088 "args": [
1089 {
1090 "type": "i32",
1091 "value": "0"
1092 }
1093 ]
1094 },
1095 "expected": [
1096 {
1097 "type": "i32",
1098 "value": "1"
1099 }
1100 ]
1101 },
1102 {
1103 "type": "assert_return",
1104 "line": 492,
1105 "action": {
1106 "type": "invoke",
1107 "field": "grow",
1108 "args": [
1109 {
1110 "type": "i32",
1111 "value": "1"
1112 }
1113 ]
1114 },
1115 "expected": [
1116 {
1117 "type": "i32",
1118 "value": "1"
1119 }
1120 ]
1121 },
1122 {
1123 "type": "assert_return",
1124 "line": 493,
1125 "action": {
1126 "type": "invoke",
1127 "field": "grow",
1128 "args": [
1129 {
1130 "type": "i32",
1131 "value": "0"
1132 }
1133 ]
1134 },
1135 "expected": [
1136 {
1137 "type": "i32",
1138 "value": "2"
1139 }
1140 ]
1141 },
1142 {
1143 "type": "assert_return",
1144 "line": 494,
1145 "action": {
1146 "type": "invoke",
1147 "field": "grow",
1148 "args": [
1149 {
1150 "type": "i32",
1151 "value": "1"
1152 }
1153 ]
1154 },
1155 "expected": [
1156 {
1157 "type": "i32",
1158 "value": "-1"
1159 }
1160 ]
1161 },
1162 {
1163 "type": "assert_return",
1164 "line": 495,
1165 "action": {
1166 "type": "invoke",
1167 "field": "grow",
1168 "args": [
1169 {
1170 "type": "i32",
1171 "value": "0"
1172 }
1173 ]
1174 },
1175 "expected": [
1176 {
1177 "type": "i32",
1178 "value": "2"
1179 }
1180 ]
1181 },
1182 {
1183 "type": "module",
1184 "line": 499,
1185 "filename": "imports.100.wasm",
1186 "module_type": "binary"
1187 },
1188 {
1189 "type": "assert_unlinkable",
1190 "line": 502,
1191 "filename": "imports.101.wasm",
1192 "module_type": "binary",
1193 "text": "incompatible import type"
1194 },
1195 {
1196 "type": "assert_unlinkable",
1197 "line": 506,
1198 "filename": "imports.102.wasm",
1199 "module_type": "binary",
1200 "text": "incompatible import type"
1201 },
1202 {
1203 "type": "assert_malformed",
1204 "line": 513,
1205 "filename": "imports.103.wat",
1206 "module_type": "text",
1207 "text": "import after function"
1208 },
1209 {
1210 "type": "assert_malformed",
1211 "line": 517,
1212 "filename": "imports.104.wat",
1213 "module_type": "text",
1214 "text": "import after function"
1215 },
1216 {
1217 "type": "assert_malformed",
1218 "line": 521,
1219 "filename": "imports.105.wat",
1220 "module_type": "text",
1221 "text": "import after function"
1222 },
1223 {
1224 "type": "assert_malformed",
1225 "line": 525,
1226 "filename": "imports.106.wat",
1227 "module_type": "text",
1228 "text": "import after function"
1229 },
1230 {
1231 "type": "assert_malformed",
1232 "line": 530,
1233 "filename": "imports.107.wat",
1234 "module_type": "text",
1235 "text": "import after global"
1236 },
1237 {
1238 "type": "assert_malformed",
1239 "line": 534,
1240 "filename": "imports.108.wat",
1241 "module_type": "text",
1242 "text": "import after global"
1243 },
1244 {
1245 "type": "assert_malformed",
1246 "line": 538,
1247 "filename": "imports.109.wat",
1248 "module_type": "text",
1249 "text": "import after global"
1250 },
1251 {
1252 "type": "assert_malformed",
1253 "line": 542,
1254 "filename": "imports.110.wat",
1255 "module_type": "text",
1256 "text": "import after global"
1257 },
1258 {
1259 "type": "assert_malformed",
1260 "line": 547,
1261 "filename": "imports.111.wat",
1262 "module_type": "text",
1263 "text": "import after table"
1264 },
1265 {
1266 "type": "assert_malformed",
1267 "line": 551,
1268 "filename": "imports.112.wat",
1269 "module_type": "text",
1270 "text": "import after table"
1271 },
1272 {
1273 "type": "assert_malformed",
1274 "line": 555,
1275 "filename": "imports.113.wat",
1276 "module_type": "text",
1277 "text": "import after table"
1278 },
1279 {
1280 "type": "assert_malformed",
1281 "line": 559,
1282 "filename": "imports.114.wat",
1283 "module_type": "text",
1284 "text": "import after table"
1285 },
1286 {
1287 "type": "assert_malformed",
1288 "line": 564,
1289 "filename": "imports.115.wat",
1290 "module_type": "text",
1291 "text": "import after memory"
1292 },
1293 {
1294 "type": "assert_malformed",
1295 "line": 568,
1296 "filename": "imports.116.wat",
1297 "module_type": "text",
1298 "text": "import after memory"
1299 },
1300 {
1301 "type": "assert_malformed",
1302 "line": 572,
1303 "filename": "imports.117.wat",
1304 "module_type": "text",
1305 "text": "import after memory"
1306 },
1307 {
1308 "type": "assert_malformed",
1309 "line": 576,
1310 "filename": "imports.118.wat",
1311 "module_type": "text",
1312 "text": "import after memory"
1313 },
1314 {
1315 "type": "module",
1316 "line": 583,
1317 "filename": "imports.119.wasm",
1318 "module_type": "binary"
1319 },
1320 {
1321 "type": "register",
1322 "line": 584,
1323 "as": "not wasm"
1324 },
1325 {
1326 "type": "assert_unlinkable",
1327 "line": 586,
1328 "filename": "imports.120.wasm",
1329 "module_type": "binary",
1330 "text": "unknown import"
1331 }
1332 ]
1333 }