| 1 |
{ |
| 2 |
"source_filename": "tests/testsuite/elem.wast", |
| 3 |
"commands": [ |
| 4 |
{ |
| 5 |
"type": "module", |
| 6 |
"line": 4, |
| 7 |
"filename": "elem.0.wasm", |
| 8 |
"module_type": "binary" |
| 9 |
}, |
| 10 |
{ |
| 11 |
"type": "module", |
| 12 |
"line": 80, |
| 13 |
"filename": "elem.1.wasm", |
| 14 |
"module_type": "binary" |
| 15 |
}, |
| 16 |
{ |
| 17 |
"type": "module", |
| 18 |
"line": 90, |
| 19 |
"filename": "elem.2.wasm", |
| 20 |
"module_type": "binary" |
| 21 |
}, |
| 22 |
{ |
| 23 |
"type": "module", |
| 24 |
"line": 95, |
| 25 |
"filename": "elem.3.wasm", |
| 26 |
"module_type": "binary" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"type": "module", |
| 30 |
"line": 101, |
| 31 |
"filename": "elem.4.wasm", |
| 32 |
"module_type": "binary" |
| 33 |
}, |
| 34 |
{ |
| 35 |
"type": "module", |
| 36 |
"line": 110, |
| 37 |
"filename": "elem.5.wasm", |
| 38 |
"module_type": "binary" |
| 39 |
}, |
| 40 |
{ |
| 41 |
"type": "module", |
| 42 |
"line": 120, |
| 43 |
"filename": "elem.6.wasm", |
| 44 |
"module_type": "binary" |
| 45 |
}, |
| 46 |
{ |
| 47 |
"type": "module", |
| 48 |
"line": 127, |
| 49 |
"filename": "elem.7.wasm", |
| 50 |
"module_type": "binary" |
| 51 |
}, |
| 52 |
{ |
| 53 |
"type": "module", |
| 54 |
"line": 134, |
| 55 |
"filename": "elem.8.wasm", |
| 56 |
"module_type": "binary" |
| 57 |
}, |
| 58 |
{ |
| 59 |
"type": "assert_return", |
| 60 |
"line": 148, |
| 61 |
"action": { |
| 62 |
"type": "invoke", |
| 63 |
"field": "call-7", |
| 64 |
"args": [] |
| 65 |
}, |
| 66 |
"expected": [ |
| 67 |
{ |
| 68 |
"type": "i32", |
| 69 |
"value": "65" |
| 70 |
} |
| 71 |
] |
| 72 |
}, |
| 73 |
{ |
| 74 |
"type": "assert_return", |
| 75 |
"line": 149, |
| 76 |
"action": { |
| 77 |
"type": "invoke", |
| 78 |
"field": "call-9", |
| 79 |
"args": [] |
| 80 |
}, |
| 81 |
"expected": [ |
| 82 |
{ |
| 83 |
"type": "i32", |
| 84 |
"value": "66" |
| 85 |
} |
| 86 |
] |
| 87 |
}, |
| 88 |
{ |
| 89 |
"type": "module", |
| 90 |
"line": 153, |
| 91 |
"filename": "elem.9.wasm", |
| 92 |
"module_type": "binary" |
| 93 |
}, |
| 94 |
{ |
| 95 |
"type": "assert_return", |
| 96 |
"line": 167, |
| 97 |
"action": { |
| 98 |
"type": "invoke", |
| 99 |
"field": "call-7", |
| 100 |
"args": [] |
| 101 |
}, |
| 102 |
"expected": [ |
| 103 |
{ |
| 104 |
"type": "i32", |
| 105 |
"value": "65" |
| 106 |
} |
| 107 |
] |
| 108 |
}, |
| 109 |
{ |
| 110 |
"type": "assert_return", |
| 111 |
"line": 168, |
| 112 |
"action": { |
| 113 |
"type": "invoke", |
| 114 |
"field": "call-9", |
| 115 |
"args": [] |
| 116 |
}, |
| 117 |
"expected": [ |
| 118 |
{ |
| 119 |
"type": "i32", |
| 120 |
"value": "66" |
| 121 |
} |
| 122 |
] |
| 123 |
}, |
| 124 |
{ |
| 125 |
"type": "assert_invalid", |
| 126 |
"line": 171, |
| 127 |
"filename": "elem.10.wasm", |
| 128 |
"module_type": "binary", |
| 129 |
"text": "unknown global" |
| 130 |
}, |
| 131 |
{ |
| 132 |
"type": "assert_invalid", |
| 133 |
"line": 175, |
| 134 |
"filename": "elem.11.wasm", |
| 135 |
"module_type": "binary", |
| 136 |
"text": "unknown global" |
| 137 |
}, |
| 138 |
{ |
| 139 |
"type": "module", |
| 140 |
"line": 182, |
| 141 |
"filename": "elem.12.wasm", |
| 142 |
"module_type": "binary" |
| 143 |
}, |
| 144 |
{ |
| 145 |
"type": "module", |
| 146 |
"line": 187, |
| 147 |
"filename": "elem.13.wasm", |
| 148 |
"module_type": "binary" |
| 149 |
}, |
| 150 |
{ |
| 151 |
"type": "module", |
| 152 |
"line": 193, |
| 153 |
"filename": "elem.14.wasm", |
| 154 |
"module_type": "binary" |
| 155 |
}, |
| 156 |
{ |
| 157 |
"type": "module", |
| 158 |
"line": 197, |
| 159 |
"filename": "elem.15.wasm", |
| 160 |
"module_type": "binary" |
| 161 |
}, |
| 162 |
{ |
| 163 |
"type": "module", |
| 164 |
"line": 202, |
| 165 |
"filename": "elem.16.wasm", |
| 166 |
"module_type": "binary" |
| 167 |
}, |
| 168 |
{ |
| 169 |
"type": "module", |
| 170 |
"line": 207, |
| 171 |
"filename": "elem.17.wasm", |
| 172 |
"module_type": "binary" |
| 173 |
}, |
| 174 |
{ |
| 175 |
"type": "module", |
| 176 |
"line": 212, |
| 177 |
"filename": "elem.18.wasm", |
| 178 |
"module_type": "binary" |
| 179 |
}, |
| 180 |
{ |
| 181 |
"type": "module", |
| 182 |
"line": 218, |
| 183 |
"filename": "elem.19.wasm", |
| 184 |
"module_type": "binary" |
| 185 |
}, |
| 186 |
{ |
| 187 |
"type": "module", |
| 188 |
"line": 224, |
| 189 |
"filename": "elem.20.wasm", |
| 190 |
"module_type": "binary" |
| 191 |
}, |
| 192 |
{ |
| 193 |
"type": "module", |
| 194 |
"line": 230, |
| 195 |
"filename": "elem.21.wasm", |
| 196 |
"module_type": "binary" |
| 197 |
}, |
| 198 |
{ |
| 199 |
"type": "assert_uninstantiable", |
| 200 |
"line": 239, |
| 201 |
"filename": "elem.22.wasm", |
| 202 |
"module_type": "binary", |
| 203 |
"text": "out of bounds table access" |
| 204 |
}, |
| 205 |
{ |
| 206 |
"type": "assert_uninstantiable", |
| 207 |
"line": 248, |
| 208 |
"filename": "elem.23.wasm", |
| 209 |
"module_type": "binary", |
| 210 |
"text": "out of bounds table access" |
| 211 |
}, |
| 212 |
{ |
| 213 |
"type": "assert_uninstantiable", |
| 214 |
"line": 257, |
| 215 |
"filename": "elem.24.wasm", |
| 216 |
"module_type": "binary", |
| 217 |
"text": "out of bounds table access" |
| 218 |
}, |
| 219 |
{ |
| 220 |
"type": "assert_uninstantiable", |
| 221 |
"line": 266, |
| 222 |
"filename": "elem.25.wasm", |
| 223 |
"module_type": "binary", |
| 224 |
"text": "out of bounds table access" |
| 225 |
}, |
| 226 |
{ |
| 227 |
"type": "assert_uninstantiable", |
| 228 |
"line": 273, |
| 229 |
"filename": "elem.26.wasm", |
| 230 |
"module_type": "binary", |
| 231 |
"text": "out of bounds table access" |
| 232 |
}, |
| 233 |
{ |
| 234 |
"type": "assert_uninstantiable", |
| 235 |
"line": 281, |
| 236 |
"filename": "elem.27.wasm", |
| 237 |
"module_type": "binary", |
| 238 |
"text": "out of bounds table access" |
| 239 |
}, |
| 240 |
{ |
| 241 |
"type": "assert_uninstantiable", |
| 242 |
"line": 290, |
| 243 |
"filename": "elem.28.wasm", |
| 244 |
"module_type": "binary", |
| 245 |
"text": "out of bounds table access" |
| 246 |
}, |
| 247 |
{ |
| 248 |
"type": "assert_uninstantiable", |
| 249 |
"line": 298, |
| 250 |
"filename": "elem.29.wasm", |
| 251 |
"module_type": "binary", |
| 252 |
"text": "out of bounds table access" |
| 253 |
}, |
| 254 |
{ |
| 255 |
"type": "assert_uninstantiable", |
| 256 |
"line": 307, |
| 257 |
"filename": "elem.30.wasm", |
| 258 |
"module_type": "binary", |
| 259 |
"text": "out of bounds table access" |
| 260 |
}, |
| 261 |
{ |
| 262 |
"type": "assert_uninstantiable", |
| 263 |
"line": 315, |
| 264 |
"filename": "elem.31.wasm", |
| 265 |
"module_type": "binary", |
| 266 |
"text": "out of bounds table access" |
| 267 |
}, |
| 268 |
{ |
| 269 |
"type": "assert_uninstantiable", |
| 270 |
"line": 324, |
| 271 |
"filename": "elem.32.wasm", |
| 272 |
"module_type": "binary", |
| 273 |
"text": "out of bounds table access" |
| 274 |
}, |
| 275 |
{ |
| 276 |
"type": "assert_uninstantiable", |
| 277 |
"line": 332, |
| 278 |
"filename": "elem.33.wasm", |
| 279 |
"module_type": "binary", |
| 280 |
"text": "out of bounds table access" |
| 281 |
}, |
| 282 |
{ |
| 283 |
"type": "module", |
| 284 |
"line": 342, |
| 285 |
"filename": "elem.34.wasm", |
| 286 |
"module_type": "binary" |
| 287 |
}, |
| 288 |
{ |
| 289 |
"type": "assert_trap", |
| 290 |
"line": 350, |
| 291 |
"action": { |
| 292 |
"type": "invoke", |
| 293 |
"field": "init", |
| 294 |
"args": [] |
| 295 |
}, |
| 296 |
"text": "out of bounds table access" |
| 297 |
}, |
| 298 |
{ |
| 299 |
"type": "module", |
| 300 |
"line": 352, |
| 301 |
"filename": "elem.35.wasm", |
| 302 |
"module_type": "binary" |
| 303 |
}, |
| 304 |
{ |
| 305 |
"type": "assert_trap", |
| 306 |
"line": 360, |
| 307 |
"action": { |
| 308 |
"type": "invoke", |
| 309 |
"field": "init", |
| 310 |
"args": [] |
| 311 |
}, |
| 312 |
"text": "out of bounds table access" |
| 313 |
}, |
| 314 |
{ |
| 315 |
"type": "assert_invalid", |
| 316 |
"line": 365, |
| 317 |
"filename": "elem.36.wasm", |
| 318 |
"module_type": "binary", |
| 319 |
"text": "unknown table" |
| 320 |
}, |
| 321 |
{ |
| 322 |
"type": "assert_invalid", |
| 323 |
"line": 375, |
| 324 |
"filename": "elem.37.wasm", |
| 325 |
"module_type": "binary", |
| 326 |
"text": "type mismatch" |
| 327 |
}, |
| 328 |
{ |
| 329 |
"type": "assert_invalid", |
| 330 |
"line": 383, |
| 331 |
"filename": "elem.38.wasm", |
| 332 |
"module_type": "binary", |
| 333 |
"text": "type mismatch" |
| 334 |
}, |
| 335 |
{ |
| 336 |
"type": "assert_invalid", |
| 337 |
"line": 391, |
| 338 |
"filename": "elem.39.wasm", |
| 339 |
"module_type": "binary", |
| 340 |
"text": "type mismatch" |
| 341 |
}, |
| 342 |
{ |
| 343 |
"type": "assert_invalid", |
| 344 |
"line": 399, |
| 345 |
"filename": "elem.40.wasm", |
| 346 |
"module_type": "binary", |
| 347 |
"text": "type mismatch" |
| 348 |
}, |
| 349 |
{ |
| 350 |
"type": "assert_invalid", |
| 351 |
"line": 407, |
| 352 |
"filename": "elem.41.wasm", |
| 353 |
"module_type": "binary", |
| 354 |
"text": "type mismatch" |
| 355 |
}, |
| 356 |
{ |
| 357 |
"type": "assert_invalid", |
| 358 |
"line": 416, |
| 359 |
"filename": "elem.42.wasm", |
| 360 |
"module_type": "binary", |
| 361 |
"text": "type mismatch" |
| 362 |
}, |
| 363 |
{ |
| 364 |
"type": "assert_invalid", |
| 365 |
"line": 426, |
| 366 |
"filename": "elem.43.wasm", |
| 367 |
"module_type": "binary", |
| 368 |
"text": "constant expression required" |
| 369 |
}, |
| 370 |
{ |
| 371 |
"type": "assert_invalid", |
| 372 |
"line": 434, |
| 373 |
"filename": "elem.44.wasm", |
| 374 |
"module_type": "binary", |
| 375 |
"text": "constant expression required" |
| 376 |
}, |
| 377 |
{ |
| 378 |
"type": "assert_invalid", |
| 379 |
"line": 442, |
| 380 |
"filename": "elem.45.wasm", |
| 381 |
"module_type": "binary", |
| 382 |
"text": "constant expression required" |
| 383 |
}, |
| 384 |
{ |
| 385 |
"type": "assert_invalid", |
| 386 |
"line": 450, |
| 387 |
"filename": "elem.46.wasm", |
| 388 |
"module_type": "binary", |
| 389 |
"text": "constant expression required" |
| 390 |
}, |
| 391 |
{ |
| 392 |
"type": "assert_invalid", |
| 393 |
"line": 458, |
| 394 |
"filename": "elem.47.wasm", |
| 395 |
"module_type": "binary", |
| 396 |
"text": "constant expression required" |
| 397 |
}, |
| 398 |
{ |
| 399 |
"type": "assert_invalid", |
| 400 |
"line": 467, |
| 401 |
"filename": "elem.48.wasm", |
| 402 |
"module_type": "binary", |
| 403 |
"text": "unknown global 0" |
| 404 |
}, |
| 405 |
{ |
| 406 |
"type": "assert_invalid", |
| 407 |
"line": 475, |
| 408 |
"filename": "elem.49.wasm", |
| 409 |
"module_type": "binary", |
| 410 |
"text": "unknown global 1" |
| 411 |
}, |
| 412 |
{ |
| 413 |
"type": "assert_invalid", |
| 414 |
"line": 484, |
| 415 |
"filename": "elem.50.wasm", |
| 416 |
"module_type": "binary", |
| 417 |
"text": "constant expression required" |
| 418 |
}, |
| 419 |
{ |
| 420 |
"type": "assert_invalid", |
| 421 |
"line": 495, |
| 422 |
"filename": "elem.51.wasm", |
| 423 |
"module_type": "binary", |
| 424 |
"text": "type mismatch" |
| 425 |
}, |
| 426 |
{ |
| 427 |
"type": "assert_invalid", |
| 428 |
"line": 503, |
| 429 |
"filename": "elem.52.wasm", |
| 430 |
"module_type": "binary", |
| 431 |
"text": "type mismatch" |
| 432 |
}, |
| 433 |
{ |
| 434 |
"type": "assert_invalid", |
| 435 |
"line": 511, |
| 436 |
"filename": "elem.53.wasm", |
| 437 |
"module_type": "binary", |
| 438 |
"text": "type mismatch" |
| 439 |
}, |
| 440 |
{ |
| 441 |
"type": "assert_invalid", |
| 442 |
"line": 519, |
| 443 |
"filename": "elem.54.wasm", |
| 444 |
"module_type": "binary", |
| 445 |
"text": "type mismatch" |
| 446 |
}, |
| 447 |
{ |
| 448 |
"type": "assert_invalid", |
| 449 |
"line": 527, |
| 450 |
"filename": "elem.55.wasm", |
| 451 |
"module_type": "binary", |
| 452 |
"text": "constant expression required" |
| 453 |
}, |
| 454 |
{ |
| 455 |
"type": "module", |
| 456 |
"line": 537, |
| 457 |
"filename": "elem.56.wasm", |
| 458 |
"module_type": "binary" |
| 459 |
}, |
| 460 |
{ |
| 461 |
"type": "assert_return", |
| 462 |
"line": 548, |
| 463 |
"action": { |
| 464 |
"type": "invoke", |
| 465 |
"field": "call-overwritten", |
| 466 |
"args": [] |
| 467 |
}, |
| 468 |
"expected": [ |
| 469 |
{ |
| 470 |
"type": "i32", |
| 471 |
"value": "66" |
| 472 |
} |
| 473 |
] |
| 474 |
}, |
| 475 |
{ |
| 476 |
"type": "module", |
| 477 |
"line": 550, |
| 478 |
"filename": "elem.57.wasm", |
| 479 |
"module_type": "binary" |
| 480 |
}, |
| 481 |
{ |
| 482 |
"type": "assert_return", |
| 483 |
"line": 561, |
| 484 |
"action": { |
| 485 |
"type": "invoke", |
| 486 |
"field": "call-overwritten-element", |
| 487 |
"args": [] |
| 488 |
}, |
| 489 |
"expected": [ |
| 490 |
{ |
| 491 |
"type": "i32", |
| 492 |
"value": "66" |
| 493 |
} |
| 494 |
] |
| 495 |
}, |
| 496 |
{ |
| 497 |
"type": "module", |
| 498 |
"line": 565, |
| 499 |
"name": "module1", |
| 500 |
"filename": "elem.58.wasm", |
| 501 |
"module_type": "binary" |
| 502 |
}, |
| 503 |
{ |
| 504 |
"type": "register", |
| 505 |
"line": 583, |
| 506 |
"name": "module1", |
| 507 |
"as": "module1" |
| 508 |
}, |
| 509 |
{ |
| 510 |
"type": "assert_trap", |
| 511 |
"line": 585, |
| 512 |
"action": { |
| 513 |
"type": "invoke", |
| 514 |
"module": "module1", |
| 515 |
"field": "call-7", |
| 516 |
"args": [] |
| 517 |
}, |
| 518 |
"text": "uninitialized element" |
| 519 |
}, |
| 520 |
{ |
| 521 |
"type": "assert_return", |
| 522 |
"line": 586, |
| 523 |
"action": { |
| 524 |
"type": "invoke", |
| 525 |
"module": "module1", |
| 526 |
"field": "call-8", |
| 527 |
"args": [] |
| 528 |
}, |
| 529 |
"expected": [ |
| 530 |
{ |
| 531 |
"type": "i32", |
| 532 |
"value": "65" |
| 533 |
} |
| 534 |
] |
| 535 |
}, |
| 536 |
{ |
| 537 |
"type": "assert_return", |
| 538 |
"line": 587, |
| 539 |
"action": { |
| 540 |
"type": "invoke", |
| 541 |
"module": "module1", |
| 542 |
"field": "call-9", |
| 543 |
"args": [] |
| 544 |
}, |
| 545 |
"expected": [ |
| 546 |
{ |
| 547 |
"type": "i32", |
| 548 |
"value": "66" |
| 549 |
} |
| 550 |
] |
| 551 |
}, |
| 552 |
{ |
| 553 |
"type": "module", |
| 554 |
"line": 589, |
| 555 |
"name": "module2", |
| 556 |
"filename": "elem.59.wasm", |
| 557 |
"module_type": "binary" |
| 558 |
}, |
| 559 |
{ |
| 560 |
"type": "assert_return", |
| 561 |
"line": 598, |
| 562 |
"action": { |
| 563 |
"type": "invoke", |
| 564 |
"module": "module1", |
| 565 |
"field": "call-7", |
| 566 |
"args": [] |
| 567 |
}, |
| 568 |
"expected": [ |
| 569 |
{ |
| 570 |
"type": "i32", |
| 571 |
"value": "67" |
| 572 |
} |
| 573 |
] |
| 574 |
}, |
| 575 |
{ |
| 576 |
"type": "assert_return", |
| 577 |
"line": 599, |
| 578 |
"action": { |
| 579 |
"type": "invoke", |
| 580 |
"module": "module1", |
| 581 |
"field": "call-8", |
| 582 |
"args": [] |
| 583 |
}, |
| 584 |
"expected": [ |
| 585 |
{ |
| 586 |
"type": "i32", |
| 587 |
"value": "68" |
| 588 |
} |
| 589 |
] |
| 590 |
}, |
| 591 |
{ |
| 592 |
"type": "assert_return", |
| 593 |
"line": 600, |
| 594 |
"action": { |
| 595 |
"type": "invoke", |
| 596 |
"module": "module1", |
| 597 |
"field": "call-9", |
| 598 |
"args": [] |
| 599 |
}, |
| 600 |
"expected": [ |
| 601 |
{ |
| 602 |
"type": "i32", |
| 603 |
"value": "66" |
| 604 |
} |
| 605 |
] |
| 606 |
}, |
| 607 |
{ |
| 608 |
"type": "module", |
| 609 |
"line": 602, |
| 610 |
"name": "module3", |
| 611 |
"filename": "elem.60.wasm", |
| 612 |
"module_type": "binary" |
| 613 |
}, |
| 614 |
{ |
| 615 |
"type": "assert_return", |
| 616 |
"line": 611, |
| 617 |
"action": { |
| 618 |
"type": "invoke", |
| 619 |
"module": "module1", |
| 620 |
"field": "call-7", |
| 621 |
"args": [] |
| 622 |
}, |
| 623 |
"expected": [ |
| 624 |
{ |
| 625 |
"type": "i32", |
| 626 |
"value": "67" |
| 627 |
} |
| 628 |
] |
| 629 |
}, |
| 630 |
{ |
| 631 |
"type": "assert_return", |
| 632 |
"line": 612, |
| 633 |
"action": { |
| 634 |
"type": "invoke", |
| 635 |
"module": "module1", |
| 636 |
"field": "call-8", |
| 637 |
"args": [] |
| 638 |
}, |
| 639 |
"expected": [ |
| 640 |
{ |
| 641 |
"type": "i32", |
| 642 |
"value": "69" |
| 643 |
} |
| 644 |
] |
| 645 |
}, |
| 646 |
{ |
| 647 |
"type": "assert_return", |
| 648 |
"line": 613, |
| 649 |
"action": { |
| 650 |
"type": "invoke", |
| 651 |
"module": "module1", |
| 652 |
"field": "call-9", |
| 653 |
"args": [] |
| 654 |
}, |
| 655 |
"expected": [ |
| 656 |
{ |
| 657 |
"type": "i32", |
| 658 |
"value": "70" |
| 659 |
} |
| 660 |
] |
| 661 |
}, |
| 662 |
{ |
| 663 |
"type": "assert_invalid", |
| 664 |
"line": 618, |
| 665 |
"filename": "elem.61.wasm", |
| 666 |
"module_type": "binary", |
| 667 |
"text": "type mismatch" |
| 668 |
}, |
| 669 |
{ |
| 670 |
"type": "assert_invalid", |
| 671 |
"line": 623, |
| 672 |
"filename": "elem.62.wasm", |
| 673 |
"module_type": "binary", |
| 674 |
"text": "type mismatch" |
| 675 |
}, |
| 676 |
{ |
| 677 |
"type": "assert_invalid", |
| 678 |
"line": 628, |
| 679 |
"filename": "elem.63.wasm", |
| 680 |
"module_type": "binary", |
| 681 |
"text": "type mismatch" |
| 682 |
}, |
| 683 |
{ |
| 684 |
"type": "assert_invalid", |
| 685 |
"line": 637, |
| 686 |
"filename": "elem.64.wasm", |
| 687 |
"module_type": "binary", |
| 688 |
"text": "type mismatch" |
| 689 |
}, |
| 690 |
{ |
| 691 |
"type": "module", |
| 692 |
"line": 646, |
| 693 |
"name": "m", |
| 694 |
"filename": "elem.65.wasm", |
| 695 |
"module_type": "binary" |
| 696 |
}, |
| 697 |
{ |
| 698 |
"type": "register", |
| 699 |
"line": 653, |
| 700 |
"name": "m", |
| 701 |
"as": "exporter" |
| 702 |
}, |
| 703 |
{ |
| 704 |
"type": "assert_return", |
| 705 |
"line": 655, |
| 706 |
"action": { |
| 707 |
"type": "invoke", |
| 708 |
"module": "m", |
| 709 |
"field": "get", |
| 710 |
"args": [ |
| 711 |
{ |
| 712 |
"type": "i32", |
| 713 |
"value": "0" |
| 714 |
} |
| 715 |
] |
| 716 |
}, |
| 717 |
"expected": [ |
| 718 |
{ |
| 719 |
"type": "externref", |
| 720 |
"value": "null" |
| 721 |
} |
| 722 |
] |
| 723 |
}, |
| 724 |
{ |
| 725 |
"type": "assert_return", |
| 726 |
"line": 656, |
| 727 |
"action": { |
| 728 |
"type": "invoke", |
| 729 |
"module": "m", |
| 730 |
"field": "get", |
| 731 |
"args": [ |
| 732 |
{ |
| 733 |
"type": "i32", |
| 734 |
"value": "1" |
| 735 |
} |
| 736 |
] |
| 737 |
}, |
| 738 |
"expected": [ |
| 739 |
{ |
| 740 |
"type": "externref", |
| 741 |
"value": "null" |
| 742 |
} |
| 743 |
] |
| 744 |
}, |
| 745 |
{ |
| 746 |
"type": "assert_return", |
| 747 |
"line": 658, |
| 748 |
"action": { |
| 749 |
"type": "invoke", |
| 750 |
"module": "m", |
| 751 |
"field": "set", |
| 752 |
"args": [ |
| 753 |
{ |
| 754 |
"type": "i32", |
| 755 |
"value": "0" |
| 756 |
}, |
| 757 |
{ |
| 758 |
"type": "externref", |
| 759 |
"value": "42" |
| 760 |
} |
| 761 |
] |
| 762 |
}, |
| 763 |
"expected": [] |
| 764 |
}, |
| 765 |
{ |
| 766 |
"type": "assert_return", |
| 767 |
"line": 659, |
| 768 |
"action": { |
| 769 |
"type": "invoke", |
| 770 |
"module": "m", |
| 771 |
"field": "set", |
| 772 |
"args": [ |
| 773 |
{ |
| 774 |
"type": "i32", |
| 775 |
"value": "1" |
| 776 |
}, |
| 777 |
{ |
| 778 |
"type": "externref", |
| 779 |
"value": "137" |
| 780 |
} |
| 781 |
] |
| 782 |
}, |
| 783 |
"expected": [] |
| 784 |
}, |
| 785 |
{ |
| 786 |
"type": "assert_return", |
| 787 |
"line": 661, |
| 788 |
"action": { |
| 789 |
"type": "invoke", |
| 790 |
"module": "m", |
| 791 |
"field": "get", |
| 792 |
"args": [ |
| 793 |
{ |
| 794 |
"type": "i32", |
| 795 |
"value": "0" |
| 796 |
} |
| 797 |
] |
| 798 |
}, |
| 799 |
"expected": [ |
| 800 |
{ |
| 801 |
"type": "externref", |
| 802 |
"value": "42" |
| 803 |
} |
| 804 |
] |
| 805 |
}, |
| 806 |
{ |
| 807 |
"type": "assert_return", |
| 808 |
"line": 662, |
| 809 |
"action": { |
| 810 |
"type": "invoke", |
| 811 |
"module": "m", |
| 812 |
"field": "get", |
| 813 |
"args": [ |
| 814 |
{ |
| 815 |
"type": "i32", |
| 816 |
"value": "1" |
| 817 |
} |
| 818 |
] |
| 819 |
}, |
| 820 |
"expected": [ |
| 821 |
{ |
| 822 |
"type": "externref", |
| 823 |
"value": "137" |
| 824 |
} |
| 825 |
] |
| 826 |
}, |
| 827 |
{ |
| 828 |
"type": "module", |
| 829 |
"line": 664, |
| 830 |
"filename": "elem.66.wasm", |
| 831 |
"module_type": "binary" |
| 832 |
}, |
| 833 |
{ |
| 834 |
"type": "assert_return", |
| 835 |
"line": 668, |
| 836 |
"action": { |
| 837 |
"type": "invoke", |
| 838 |
"module": "m", |
| 839 |
"field": "get", |
| 840 |
"args": [ |
| 841 |
{ |
| 842 |
"type": "i32", |
| 843 |
"value": "0" |
| 844 |
} |
| 845 |
] |
| 846 |
}, |
| 847 |
"expected": [ |
| 848 |
{ |
| 849 |
"type": "externref", |
| 850 |
"value": "null" |
| 851 |
} |
| 852 |
] |
| 853 |
}, |
| 854 |
{ |
| 855 |
"type": "assert_return", |
| 856 |
"line": 669, |
| 857 |
"action": { |
| 858 |
"type": "invoke", |
| 859 |
"module": "m", |
| 860 |
"field": "get", |
| 861 |
"args": [ |
| 862 |
{ |
| 863 |
"type": "i32", |
| 864 |
"value": "1" |
| 865 |
} |
| 866 |
] |
| 867 |
}, |
| 868 |
"expected": [ |
| 869 |
{ |
| 870 |
"type": "externref", |
| 871 |
"value": "137" |
| 872 |
} |
| 873 |
] |
| 874 |
}, |
| 875 |
{ |
| 876 |
"type": "module", |
| 877 |
"line": 673, |
| 878 |
"name": "module4", |
| 879 |
"filename": "elem.67.wasm", |
| 880 |
"module_type": "binary" |
| 881 |
}, |
| 882 |
{ |
| 883 |
"type": "register", |
| 884 |
"line": 680, |
| 885 |
"name": "module4", |
| 886 |
"as": "module4" |
| 887 |
}, |
| 888 |
{ |
| 889 |
"type": "module", |
| 890 |
"line": 682, |
| 891 |
"filename": "elem.68.wasm", |
| 892 |
"module_type": "binary" |
| 893 |
}, |
| 894 |
{ |
| 895 |
"type": "assert_return", |
| 896 |
"line": 692, |
| 897 |
"action": { |
| 898 |
"type": "invoke", |
| 899 |
"field": "call_imported_elem", |
| 900 |
"args": [] |
| 901 |
}, |
| 902 |
"expected": [ |
| 903 |
{ |
| 904 |
"type": "i32", |
| 905 |
"value": "42" |
| 906 |
} |
| 907 |
] |
| 908 |
} |
| 909 |
] |
| 910 |
} |