github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/integration_test/spectest/v2/testdata/binary.json (about)

     1  {"source_filename": "./binary.wast",
     2   "commands": [
     3    {"type": "module", "line": 1, "filename": "binary.0.wasm"}, 
     4    {"type": "module", "line": 2, "filename": "binary.1.wasm"}, 
     5    {"type": "module", "line": 3, "name": "$M1", "filename": "binary.2.wasm"}, 
     6    {"type": "module", "line": 4, "name": "$M2", "filename": "binary.3.wasm"}, 
     7    {"type": "assert_malformed", "line": 6, "filename": "binary.4.wasm", "text": "unexpected end", "module_type": "binary"}, 
     8    {"type": "assert_malformed", "line": 7, "filename": "binary.5.wasm", "text": "unexpected end", "module_type": "binary"}, 
     9    {"type": "assert_malformed", "line": 8, "filename": "binary.6.wasm", "text": "unexpected end", "module_type": "binary"}, 
    10    {"type": "assert_malformed", "line": 9, "filename": "binary.7.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    11    {"type": "assert_malformed", "line": 10, "filename": "binary.8.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    12    {"type": "assert_malformed", "line": 11, "filename": "binary.9.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    13    {"type": "assert_malformed", "line": 12, "filename": "binary.10.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    14    {"type": "assert_malformed", "line": 13, "filename": "binary.11.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    15    {"type": "assert_malformed", "line": 14, "filename": "binary.12.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    16    {"type": "assert_malformed", "line": 15, "filename": "binary.13.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    17    {"type": "assert_malformed", "line": 16, "filename": "binary.14.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    18    {"type": "assert_malformed", "line": 17, "filename": "binary.15.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    19    {"type": "assert_malformed", "line": 18, "filename": "binary.16.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    20    {"type": "assert_malformed", "line": 21, "filename": "binary.17.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    21    {"type": "assert_malformed", "line": 24, "filename": "binary.18.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    22    {"type": "assert_malformed", "line": 25, "filename": "binary.19.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    23    {"type": "assert_malformed", "line": 28, "filename": "binary.20.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    24    {"type": "assert_malformed", "line": 31, "filename": "binary.21.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    25    {"type": "assert_malformed", "line": 34, "filename": "binary.22.wasm", "text": "magic header not detected", "module_type": "binary"}, 
    26    {"type": "assert_malformed", "line": 37, "filename": "binary.23.wasm", "text": "unexpected end", "module_type": "binary"}, 
    27    {"type": "assert_malformed", "line": 38, "filename": "binary.24.wasm", "text": "unexpected end", "module_type": "binary"}, 
    28    {"type": "assert_malformed", "line": 39, "filename": "binary.25.wasm", "text": "unexpected end", "module_type": "binary"}, 
    29    {"type": "assert_malformed", "line": 40, "filename": "binary.26.wasm", "text": "unknown binary version", "module_type": "binary"}, 
    30    {"type": "assert_malformed", "line": 41, "filename": "binary.27.wasm", "text": "unknown binary version", "module_type": "binary"}, 
    31    {"type": "assert_malformed", "line": 42, "filename": "binary.28.wasm", "text": "unknown binary version", "module_type": "binary"}, 
    32    {"type": "assert_malformed", "line": 43, "filename": "binary.29.wasm", "text": "unknown binary version", "module_type": "binary"}, 
    33    {"type": "assert_malformed", "line": 44, "filename": "binary.30.wasm", "text": "unknown binary version", "module_type": "binary"}, 
    34    {"type": "assert_malformed", "line": 45, "filename": "binary.31.wasm", "text": "unknown binary version", "module_type": "binary"}, 
    35    {"type": "assert_malformed", "line": 48, "filename": "binary.32.wasm", "text": "malformed section id", "module_type": "binary"}, 
    36    {"type": "assert_malformed", "line": 49, "filename": "binary.33.wasm", "text": "malformed section id", "module_type": "binary"}, 
    37    {"type": "assert_malformed", "line": 50, "filename": "binary.34.wasm", "text": "malformed section id", "module_type": "binary"}, 
    38    {"type": "assert_malformed", "line": 51, "filename": "binary.35.wasm", "text": "malformed section id", "module_type": "binary"}, 
    39    {"type": "assert_malformed", "line": 52, "filename": "binary.36.wasm", "text": "malformed section id", "module_type": "binary"}, 
    40    {"type": "assert_malformed", "line": 56, "filename": "binary.37.wasm", "text": "END opcode expected", "module_type": "binary"}, 
    41    {"type": "assert_malformed", "line": 77, "filename": "binary.38.wasm", "text": "unexpected end of section or function", "module_type": "binary"}, 
    42    {"type": "assert_malformed", "line": 93, "filename": "binary.39.wasm", "text": "section size mismatch", "module_type": "binary"}, 
    43    {"type": "assert_malformed", "line": 113, "filename": "binary.40.wasm", "text": "illegal opcode", "module_type": "binary"}, 
    44    {"type": "assert_malformed", "line": 126, "filename": "binary.41.wasm", "text": "zero byte expected", "module_type": "binary"}, 
    45    {"type": "assert_malformed", "line": 146, "filename": "binary.42.wasm", "text": "zero byte expected", "module_type": "binary"}, 
    46    {"type": "assert_malformed", "line": 166, "filename": "binary.43.wasm", "text": "zero byte expected", "module_type": "binary"}, 
    47    {"type": "assert_malformed", "line": 185, "filename": "binary.44.wasm", "text": "zero byte expected", "module_type": "binary"}, 
    48    {"type": "assert_malformed", "line": 204, "filename": "binary.45.wasm", "text": "zero byte expected", "module_type": "binary"}, 
    49    {"type": "assert_malformed", "line": 224, "filename": "binary.46.wasm", "text": "zero byte expected", "module_type": "binary"}, 
    50    {"type": "assert_malformed", "line": 243, "filename": "binary.47.wasm", "text": "zero byte expected", "module_type": "binary"}, 
    51    {"type": "assert_malformed", "line": 262, "filename": "binary.48.wasm", "text": "zero byte expected", "module_type": "binary"}, 
    52    {"type": "assert_malformed", "line": 280, "filename": "binary.49.wasm", "text": "zero byte expected", "module_type": "binary"}, 
    53    {"type": "assert_malformed", "line": 298, "filename": "binary.50.wasm", "text": "zero byte expected", "module_type": "binary"}, 
    54    {"type": "assert_malformed", "line": 317, "filename": "binary.51.wasm", "text": "integer too large", "module_type": "binary"}, 
    55    {"type": "assert_malformed", "line": 334, "filename": "binary.52.wasm", "text": "integer too large", "module_type": "binary"}, 
    56    {"type": "assert_malformed", "line": 351, "filename": "binary.53.wasm", "text": "too many locals", "module_type": "binary"}, 
    57    {"type": "assert_malformed", "line": 367, "filename": "binary.54.wasm", "text": "too many locals", "module_type": "binary"}, 
    58    {"type": "module", "line": 385, "filename": "binary.55.wasm"}, 
    59    {"type": "assert_malformed", "line": 401, "filename": "binary.56.wasm", "text": "function and code section have inconsistent lengths", "module_type": "binary"}, 
    60    {"type": "assert_malformed", "line": 411, "filename": "binary.57.wasm", "text": "function and code section have inconsistent lengths", "module_type": "binary"}, 
    61    {"type": "assert_malformed", "line": 420, "filename": "binary.58.wasm", "text": "function and code section have inconsistent lengths", "module_type": "binary"}, 
    62    {"type": "assert_malformed", "line": 431, "filename": "binary.59.wasm", "text": "function and code section have inconsistent lengths", "module_type": "binary"}, 
    63    {"type": "module", "line": 441, "filename": "binary.60.wasm"}, 
    64    {"type": "module", "line": 447, "filename": "binary.61.wasm"}, 
    65    {"type": "assert_malformed", "line": 454, "filename": "binary.62.wasm", "text": "data count and data section have inconsistent lengths", "module_type": "binary"}, 
    66    {"type": "assert_malformed", "line": 464, "filename": "binary.63.wasm", "text": "data count and data section have inconsistent lengths", "module_type": "binary"}, 
    67    {"type": "assert_malformed", "line": 474, "filename": "binary.64.wasm", "text": "data count section required", "module_type": "binary"}, 
    68    {"type": "assert_malformed", "line": 496, "filename": "binary.65.wasm", "text": "data count section required", "module_type": "binary"}, 
    69    {"type": "assert_malformed", "line": 515, "filename": "binary.66.wasm", "text": "illegal opcode", "module_type": "binary"}, 
    70    {"type": "assert_malformed", "line": 541, "filename": "binary.67.wasm", "text": "malformed reference type", "module_type": "binary"}, 
    71    {"type": "module", "line": 566, "filename": "binary.68.wasm"}, 
    72    {"type": "module", "line": 590, "filename": "binary.69.wasm"}, 
    73    {"type": "module", "line": 615, "filename": "binary.70.wasm"}, 
    74    {"type": "assert_malformed", "line": 622, "filename": "binary.71.wasm", "text": "length out of bounds", "module_type": "binary"}, 
    75    {"type": "assert_malformed", "line": 633, "filename": "binary.72.wasm", "text": "section size mismatch", "module_type": "binary"}, 
    76    {"type": "module", "line": 643, "filename": "binary.73.wasm"}, 
    77    {"type": "assert_malformed", "line": 652, "filename": "binary.74.wasm", "text": "malformed import kind", "module_type": "binary"}, 
    78    {"type": "assert_malformed", "line": 662, "filename": "binary.75.wasm", "text": "malformed import kind", "module_type": "binary"}, 
    79    {"type": "assert_malformed", "line": 673, "filename": "binary.76.wasm", "text": "malformed import kind", "module_type": "binary"}, 
    80    {"type": "assert_malformed", "line": 683, "filename": "binary.77.wasm", "text": "malformed import kind", "module_type": "binary"}, 
    81    {"type": "assert_malformed", "line": 694, "filename": "binary.78.wasm", "text": "malformed import kind", "module_type": "binary"}, 
    82    {"type": "assert_malformed", "line": 704, "filename": "binary.79.wasm", "text": "malformed import kind", "module_type": "binary"}, 
    83    {"type": "assert_malformed", "line": 717, "filename": "binary.80.wasm", "text": "unexpected end of section or function", "module_type": "binary"}, 
    84    {"type": "assert_malformed", "line": 736, "filename": "binary.81.wasm", "text": "section size mismatch", "module_type": "binary"}, 
    85    {"type": "module", "line": 760, "filename": "binary.82.wasm"}, 
    86    {"type": "assert_malformed", "line": 767, "filename": "binary.83.wasm", "text": "unexpected end of section or function", "module_type": "binary"}, 
    87    {"type": "assert_malformed", "line": 777, "filename": "binary.84.wasm", "text": "integer too large", "module_type": "binary"}, 
    88    {"type": "assert_malformed", "line": 786, "filename": "binary.85.wasm", "text": "integer too large", "module_type": "binary"}, 
    89    {"type": "assert_malformed", "line": 796, "filename": "binary.86.wasm", "text": "integer representation too long", "module_type": "binary"}, 
    90    {"type": "module", "line": 807, "filename": "binary.87.wasm"}, 
    91    {"type": "assert_malformed", "line": 814, "filename": "binary.88.wasm", "text": "unexpected end of section or function", "module_type": "binary"}, 
    92    {"type": "assert_malformed", "line": 824, "filename": "binary.89.wasm", "text": "integer too large", "module_type": "binary"}, 
    93    {"type": "assert_malformed", "line": 832, "filename": "binary.90.wasm", "text": "integer too large", "module_type": "binary"}, 
    94    {"type": "assert_malformed", "line": 841, "filename": "binary.91.wasm", "text": "integer representation too long", "module_type": "binary"}, 
    95    {"type": "assert_malformed", "line": 850, "filename": "binary.92.wasm", "text": "integer representation too long", "module_type": "binary"}, 
    96    {"type": "module", "line": 860, "filename": "binary.93.wasm"}, 
    97    {"type": "assert_malformed", "line": 867, "filename": "binary.94.wasm", "text": "unexpected end of section or function", "module_type": "binary"}, 
    98    {"type": "assert_malformed", "line": 878, "filename": "binary.95.wasm", "text": "section size mismatch", "module_type": "binary"}, 
    99    {"type": "module", "line": 888, "filename": "binary.96.wasm"}, 
   100    {"type": "assert_malformed", "line": 901, "filename": "binary.97.wasm", "text": "length out of bounds", "module_type": "binary"}, 
   101    {"type": "assert_malformed", "line": 922, "filename": "binary.98.wasm", "text": "section size mismatch", "module_type": "binary"}, 
   102    {"type": "module", "line": 942, "filename": "binary.99.wasm"}, 
   103    {"type": "assert_malformed", "line": 956, "filename": "binary.100.wasm", "text": "unexpected end", "module_type": "binary"}, 
   104    {"type": "assert_malformed", "line": 972, "filename": "binary.101.wasm", "text": "unexpected end", "module_type": "binary"}, 
   105    {"type": "assert_malformed", "line": 989, "filename": "binary.102.wasm", "text": "section size mismatch", "module_type": "binary"}, 
   106    {"type": "module", "line": 1006, "filename": "binary.103.wasm"}, 
   107    {"type": "assert_malformed", "line": 1015, "filename": "binary.104.wasm", "text": "unexpected end of section or function", "module_type": "binary"}, 
   108    {"type": "assert_malformed", "line": 1028, "filename": "binary.105.wasm", "text": "section size mismatch", "module_type": "binary"}, 
   109    {"type": "assert_malformed", "line": 1041, "filename": "binary.106.wasm", "text": "unexpected end of section or function", "module_type": "binary"}, 
   110    {"type": "assert_malformed", "line": 1055, "filename": "binary.107.wasm", "text": "section size mismatch", "module_type": "binary"}, 
   111    {"type": "module", "line": 1068, "filename": "binary.108.wasm"}, 
   112    {"type": "assert_malformed", "line": 1086, "filename": "binary.109.wasm", "text": "unexpected end", "module_type": "binary"}, 
   113    {"type": "module", "line": 1119, "filename": "binary.110.wasm"}, 
   114    {"type": "assert_malformed", "line": 1133, "filename": "binary.111.wasm", "text": "unexpected content after last section", "module_type": "binary"}]}