Debian Codegraph @

js/src/jit-test/tests/wasm/spec/exception-handling/utf8-import-module.wast.js

raw
1 /* Copyright 2021 Mozilla Foundation
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 // ./test/core/utf8-import-module.wast
17
18 // ./test/core/utf8-import-module.wast:6
19 assert_malformed(
20 () => instantiate(`(module binary
21 "\\00asm" "\\01\\00\\00\\00"
22 "\\02\\0b" ;; import section
23 "\\01" ;; length 1
24 "\\04\\74\\65\\73\\74" ;; "test"
25 "\\01\\80" ;; "\\80"
26 "\\03" ;; GlobalImport
27 "\\7f" ;; i32
28 "\\00" ;; immutable
29 )`),
30 `malformed UTF-8 encoding`,
31 );
32
33 // ./test/core/utf8-import-module.wast:21
34 assert_malformed(
35 () => instantiate(`(module binary
36 "\\00asm" "\\01\\00\\00\\00"
37 "\\02\\0b" ;; import section
38 "\\01" ;; length 1
39 "\\04\\74\\65\\73\\74" ;; "test"
40 "\\01\\8f" ;; "\\8f"
41 "\\03" ;; GlobalImport
42 "\\7f" ;; i32
43 "\\00" ;; immutable
44 )`),
45 `malformed UTF-8 encoding`,
46 );
47
48 // ./test/core/utf8-import-module.wast:36
49 assert_malformed(
50 () => instantiate(`(module binary
51 "\\00asm" "\\01\\00\\00\\00"
52 "\\02\\0b" ;; import section
53 "\\01" ;; length 1
54 "\\04\\74\\65\\73\\74" ;; "test"
55 "\\01\\90" ;; "\\90"
56 "\\03" ;; GlobalImport
57 "\\7f" ;; i32
58 "\\00" ;; immutable
59 )`),
60 `malformed UTF-8 encoding`,
61 );
62
63 // ./test/core/utf8-import-module.wast:51
64 assert_malformed(
65 () => instantiate(`(module binary
66 "\\00asm" "\\01\\00\\00\\00"
67 "\\02\\0b" ;; import section
68 "\\01" ;; length 1
69 "\\04\\74\\65\\73\\74" ;; "test"
70 "\\01\\9f" ;; "\\9f"
71 "\\03" ;; GlobalImport
72 "\\7f" ;; i32
73 "\\00" ;; immutable
74 )`),
75 `malformed UTF-8 encoding`,
76 );
77
78 // ./test/core/utf8-import-module.wast:66
79 assert_malformed(
80 () => instantiate(`(module binary
81 "\\00asm" "\\01\\00\\00\\00"
82 "\\02\\0b" ;; import section
83 "\\01" ;; length 1
84 "\\04\\74\\65\\73\\74" ;; "test"
85 "\\01\\a0" ;; "\\a0"
86 "\\03" ;; GlobalImport
87 "\\7f" ;; i32
88 "\\00" ;; immutable
89 )`),
90 `malformed UTF-8 encoding`,
91 );
92
93 // ./test/core/utf8-import-module.wast:81
94 assert_malformed(
95 () => instantiate(`(module binary
96 "\\00asm" "\\01\\00\\00\\00"
97 "\\02\\0b" ;; import section
98 "\\01" ;; length 1
99 "\\04\\74\\65\\73\\74" ;; "test"
100 "\\01\\bf" ;; "\\bf"
101 "\\03" ;; GlobalImport
102 "\\7f" ;; i32
103 "\\00" ;; immutable
104 )`),
105 `malformed UTF-8 encoding`,
106 );
107
108 // ./test/core/utf8-import-module.wast:98
109 assert_malformed(
110 () => instantiate(`(module binary
111 "\\00asm" "\\01\\00\\00\\00"
112 "\\02\\0d" ;; import section
113 "\\01" ;; length 1
114 "\\04\\74\\65\\73\\74" ;; "test"
115 "\\03\\c2\\80\\80" ;; "\\c2\\80\\80"
116 "\\03" ;; GlobalImport
117 "\\7f" ;; i32
118 "\\00" ;; immutable
119 )`),
120 `malformed UTF-8 encoding`,
121 );
122
123 // ./test/core/utf8-import-module.wast:113
124 assert_malformed(
125 () => instantiate(`(module binary
126 "\\00asm" "\\01\\00\\00\\00"
127 "\\02\\0b" ;; import section
128 "\\01" ;; length 1
129 "\\04\\74\\65\\73\\74" ;; "test"
130 "\\01\\c2" ;; "\\c2"
131 "\\03" ;; GlobalImport
132 "\\7f" ;; i32
133 "\\00" ;; immutable
134 )`),
135 `malformed UTF-8 encoding`,
136 );
137
138 // ./test/core/utf8-import-module.wast:128
139 assert_malformed(
140 () => instantiate(`(module binary
141 "\\00asm" "\\01\\00\\00\\00"
142 "\\02\\0c" ;; import section
143 "\\01" ;; length 1
144 "\\04\\74\\65\\73\\74" ;; "test"
145 "\\02\\c2\\2e" ;; "\\c2."
146 "\\03" ;; GlobalImport
147 "\\7f" ;; i32
148 "\\00" ;; immutable
149 )`),
150 `malformed UTF-8 encoding`,
151 );
152
153 // ./test/core/utf8-import-module.wast:145
154 assert_malformed(
155 () => instantiate(`(module binary
156 "\\00asm" "\\01\\00\\00\\00"
157 "\\02\\0c" ;; import section
158 "\\01" ;; length 1
159 "\\04\\74\\65\\73\\74" ;; "test"
160 "\\02\\c0\\80" ;; "\\c0\\80"
161 "\\03" ;; GlobalImport
162 "\\7f" ;; i32
163 "\\00" ;; immutable
164 )`),
165 `malformed UTF-8 encoding`,
166 );
167
168 // ./test/core/utf8-import-module.wast:160
169 assert_malformed(
170 () => instantiate(`(module binary
171 "\\00asm" "\\01\\00\\00\\00"
172 "\\02\\0c" ;; import section
173 "\\01" ;; length 1
174 "\\04\\74\\65\\73\\74" ;; "test"
175 "\\02\\c0\\bf" ;; "\\c0\\bf"
176 "\\03" ;; GlobalImport
177 "\\7f" ;; i32
178 "\\00" ;; immutable
179 )`),
180 `malformed UTF-8 encoding`,
181 );
182
183 // ./test/core/utf8-import-module.wast:175
184 assert_malformed(
185 () => instantiate(`(module binary
186 "\\00asm" "\\01\\00\\00\\00"
187 "\\02\\0c" ;; import section
188 "\\01" ;; length 1
189 "\\04\\74\\65\\73\\74" ;; "test"
190 "\\02\\c1\\80" ;; "\\c1\\80"
191 "\\03" ;; GlobalImport
192 "\\7f" ;; i32
193 "\\00" ;; immutable
194 )`),
195 `malformed UTF-8 encoding`,
196 );
197
198 // ./test/core/utf8-import-module.wast:190
199 assert_malformed(
200 () => instantiate(`(module binary
201 "\\00asm" "\\01\\00\\00\\00"
202 "\\02\\0c" ;; import section
203 "\\01" ;; length 1
204 "\\04\\74\\65\\73\\74" ;; "test"
205 "\\02\\c1\\bf" ;; "\\c1\\bf"
206 "\\03" ;; GlobalImport
207 "\\7f" ;; i32
208 "\\00" ;; immutable
209 )`),
210 `malformed UTF-8 encoding`,
211 );
212
213 // ./test/core/utf8-import-module.wast:205
214 assert_malformed(
215 () => instantiate(`(module binary
216 "\\00asm" "\\01\\00\\00\\00"
217 "\\02\\0c" ;; import section
218 "\\01" ;; length 1
219 "\\04\\74\\65\\73\\74" ;; "test"
220 "\\02\\c2\\00" ;; "\\c2\\00"
221 "\\03" ;; GlobalImport
222 "\\7f" ;; i32
223 "\\00" ;; immutable
224 )`),
225 `malformed UTF-8 encoding`,
226 );
227
228 // ./test/core/utf8-import-module.wast:220
229 assert_malformed(
230 () => instantiate(`(module binary
231 "\\00asm" "\\01\\00\\00\\00"
232 "\\02\\0c" ;; import section
233 "\\01" ;; length 1
234 "\\04\\74\\65\\73\\74" ;; "test"
235 "\\02\\c2\\7f" ;; "\\c2\\7f"
236 "\\03" ;; GlobalImport
237 "\\7f" ;; i32
238 "\\00" ;; immutable
239 )`),
240 `malformed UTF-8 encoding`,
241 );
242
243 // ./test/core/utf8-import-module.wast:235
244 assert_malformed(
245 () => instantiate(`(module binary
246 "\\00asm" "\\01\\00\\00\\00"
247 "\\02\\0c" ;; import section
248 "\\01" ;; length 1
249 "\\04\\74\\65\\73\\74" ;; "test"
250 "\\02\\c2\\c0" ;; "\\c2\\c0"
251 "\\03" ;; GlobalImport
252 "\\7f" ;; i32
253 "\\00" ;; immutable
254 )`),
255 `malformed UTF-8 encoding`,
256 );
257
258 // ./test/core/utf8-import-module.wast:250
259 assert_malformed(
260 () => instantiate(`(module binary
261 "\\00asm" "\\01\\00\\00\\00"
262 "\\02\\0c" ;; import section
263 "\\01" ;; length 1
264 "\\04\\74\\65\\73\\74" ;; "test"
265 "\\02\\c2\\fd" ;; "\\c2\\fd"
266 "\\03" ;; GlobalImport
267 "\\7f" ;; i32
268 "\\00" ;; immutable
269 )`),
270 `malformed UTF-8 encoding`,
271 );
272
273 // ./test/core/utf8-import-module.wast:265
274 assert_malformed(
275 () => instantiate(`(module binary
276 "\\00asm" "\\01\\00\\00\\00"
277 "\\02\\0c" ;; import section
278 "\\01" ;; length 1
279 "\\04\\74\\65\\73\\74" ;; "test"
280 "\\02\\df\\00" ;; "\\df\\00"
281 "\\03" ;; GlobalImport
282 "\\7f" ;; i32
283 "\\00" ;; immutable
284 )`),
285 `malformed UTF-8 encoding`,
286 );
287
288 // ./test/core/utf8-import-module.wast:280
289 assert_malformed(
290 () => instantiate(`(module binary
291 "\\00asm" "\\01\\00\\00\\00"
292 "\\02\\0c" ;; import section
293 "\\01" ;; length 1
294 "\\04\\74\\65\\73\\74" ;; "test"
295 "\\02\\df\\7f" ;; "\\df\\7f"
296 "\\03" ;; GlobalImport
297 "\\7f" ;; i32
298 "\\00" ;; immutable
299 )`),
300 `malformed UTF-8 encoding`,
301 );
302
303 // ./test/core/utf8-import-module.wast:295
304 assert_malformed(
305 () => instantiate(`(module binary
306 "\\00asm" "\\01\\00\\00\\00"
307 "\\02\\0c" ;; import section
308 "\\01" ;; length 1
309 "\\04\\74\\65\\73\\74" ;; "test"
310 "\\02\\df\\c0" ;; "\\df\\c0"
311 "\\03" ;; GlobalImport
312 "\\7f" ;; i32
313 "\\00" ;; immutable
314 )`),
315 `malformed UTF-8 encoding`,
316 );
317
318 // ./test/core/utf8-import-module.wast:310
319 assert_malformed(
320 () => instantiate(`(module binary
321 "\\00asm" "\\01\\00\\00\\00"
322 "\\02\\0c" ;; import section
323 "\\01" ;; length 1
324 "\\04\\74\\65\\73\\74" ;; "test"
325 "\\02\\df\\fd" ;; "\\df\\fd"
326 "\\03" ;; GlobalImport
327 "\\7f" ;; i32
328 "\\00" ;; immutable
329 )`),
330 `malformed UTF-8 encoding`,
331 );
332
333 // ./test/core/utf8-import-module.wast:327
334 assert_malformed(
335 () => instantiate(`(module binary
336 "\\00asm" "\\01\\00\\00\\00"
337 "\\02\\0e" ;; import section
338 "\\01" ;; length 1
339 "\\04\\74\\65\\73\\74" ;; "test"
340 "\\04\\e1\\80\\80\\80" ;; "\\e1\\80\\80\\80"
341 "\\03" ;; GlobalImport
342 "\\7f" ;; i32
343 "\\00" ;; immutable
344 )`),
345 `malformed UTF-8 encoding`,
346 );
347
348 // ./test/core/utf8-import-module.wast:342
349 assert_malformed(
350 () => instantiate(`(module binary
351 "\\00asm" "\\01\\00\\00\\00"
352 "\\02\\0c" ;; import section
353 "\\01" ;; length 1
354 "\\04\\74\\65\\73\\74" ;; "test"
355 "\\02\\e1\\80" ;; "\\e1\\80"
356 "\\03" ;; GlobalImport
357 "\\7f" ;; i32
358 "\\00" ;; immutable
359 )`),
360 `malformed UTF-8 encoding`,
361 );
362
363 // ./test/core/utf8-import-module.wast:357
364 assert_malformed(
365 () => instantiate(`(module binary
366 "\\00asm" "\\01\\00\\00\\00"
367 "\\02\\0d" ;; import section
368 "\\01" ;; length 1
369 "\\04\\74\\65\\73\\74" ;; "test"
370 "\\03\\e1\\80\\2e" ;; "\\e1\\80."
371 "\\03" ;; GlobalImport
372 "\\7f" ;; i32
373 "\\00" ;; immutable
374 )`),
375 `malformed UTF-8 encoding`,
376 );
377
378 // ./test/core/utf8-import-module.wast:372
379 assert_malformed(
380 () => instantiate(`(module binary
381 "\\00asm" "\\01\\00\\00\\00"
382 "\\02\\0b" ;; import section
383 "\\01" ;; length 1
384 "\\04\\74\\65\\73\\74" ;; "test"
385 "\\01\\e1" ;; "\\e1"
386 "\\03" ;; GlobalImport
387 "\\7f" ;; i32
388 "\\00" ;; immutable
389 )`),
390 `malformed UTF-8 encoding`,
391 );
392
393 // ./test/core/utf8-import-module.wast:387
394 assert_malformed(
395 () => instantiate(`(module binary
396 "\\00asm" "\\01\\00\\00\\00"
397 "\\02\\0c" ;; import section
398 "\\01" ;; length 1
399 "\\04\\74\\65\\73\\74" ;; "test"
400 "\\02\\e1\\2e" ;; "\\e1."
401 "\\03" ;; GlobalImport
402 "\\7f" ;; i32
403 "\\00" ;; immutable
404 )`),
405 `malformed UTF-8 encoding`,
406 );
407
408 // ./test/core/utf8-import-module.wast:404
409 assert_malformed(
410 () => instantiate(`(module binary
411 "\\00asm" "\\01\\00\\00\\00"
412 "\\02\\0d" ;; import section
413 "\\01" ;; length 1
414 "\\04\\74\\65\\73\\74" ;; "test"
415 "\\03\\e0\\00\\a0" ;; "\\e0\\00\\a0"
416 "\\03" ;; GlobalImport
417 "\\7f" ;; i32
418 "\\00" ;; immutable
419 )`),
420 `malformed UTF-8 encoding`,
421 );
422
423 // ./test/core/utf8-import-module.wast:419
424 assert_malformed(
425 () => instantiate(`(module binary
426 "\\00asm" "\\01\\00\\00\\00"
427 "\\02\\0d" ;; import section
428 "\\01" ;; length 1
429 "\\04\\74\\65\\73\\74" ;; "test"
430 "\\03\\e0\\7f\\a0" ;; "\\e0\\7f\\a0"
431 "\\03" ;; GlobalImport
432 "\\7f" ;; i32
433 "\\00" ;; immutable
434 )`),
435 `malformed UTF-8 encoding`,
436 );
437
438 // ./test/core/utf8-import-module.wast:434
439 assert_malformed(
440 () => instantiate(`(module binary
441 "\\00asm" "\\01\\00\\00\\00"
442 "\\02\\0d" ;; import section
443 "\\01" ;; length 1
444 "\\04\\74\\65\\73\\74" ;; "test"
445 "\\03\\e0\\80\\80" ;; "\\e0\\80\\80"
446 "\\03" ;; GlobalImport
447 "\\7f" ;; i32
448 "\\00" ;; immutable
449 )`),
450 `malformed UTF-8 encoding`,
451 );
452
453 // ./test/core/utf8-import-module.wast:449
454 assert_malformed(
455 () => instantiate(`(module binary
456 "\\00asm" "\\01\\00\\00\\00"
457 "\\02\\0d" ;; import section
458 "\\01" ;; length 1
459 "\\04\\74\\65\\73\\74" ;; "test"
460 "\\03\\e0\\80\\a0" ;; "\\e0\\80\\a0"
461 "\\03" ;; GlobalImport
462 "\\7f" ;; i32
463 "\\00" ;; immutable
464 )`),
465 `malformed UTF-8 encoding`,
466 );
467
468 // ./test/core/utf8-import-module.wast:464
469 assert_malformed(
470 () => instantiate(`(module binary
471 "\\00asm" "\\01\\00\\00\\00"
472 "\\02\\0d" ;; import section
473 "\\01" ;; length 1
474 "\\04\\74\\65\\73\\74" ;; "test"
475 "\\03\\e0\\9f\\a0" ;; "\\e0\\9f\\a0"
476 "\\03" ;; GlobalImport
477 "\\7f" ;; i32
478 "\\00" ;; immutable
479 )`),
480 `malformed UTF-8 encoding`,
481 );
482
483 // ./test/core/utf8-import-module.wast:479
484 assert_malformed(
485 () => instantiate(`(module binary
486 "\\00asm" "\\01\\00\\00\\00"
487 "\\02\\0d" ;; import section
488 "\\01" ;; length 1
489 "\\04\\74\\65\\73\\74" ;; "test"
490 "\\03\\e0\\9f\\bf" ;; "\\e0\\9f\\bf"
491 "\\03" ;; GlobalImport
492 "\\7f" ;; i32
493 "\\00" ;; immutable
494 )`),
495 `malformed UTF-8 encoding`,
496 );
497
498 // ./test/core/utf8-import-module.wast:494
499 assert_malformed(
500 () => instantiate(`(module binary
501 "\\00asm" "\\01\\00\\00\\00"
502 "\\02\\0d" ;; import section
503 "\\01" ;; length 1
504 "\\04\\74\\65\\73\\74" ;; "test"
505 "\\03\\e0\\c0\\a0" ;; "\\e0\\c0\\a0"
506 "\\03" ;; GlobalImport
507 "\\7f" ;; i32
508 "\\00" ;; immutable
509 )`),
510 `malformed UTF-8 encoding`,
511 );
512
513 // ./test/core/utf8-import-module.wast:509
514 assert_malformed(
515 () => instantiate(`(module binary
516 "\\00asm" "\\01\\00\\00\\00"
517 "\\02\\0d" ;; import section
518 "\\01" ;; length 1
519 "\\04\\74\\65\\73\\74" ;; "test"
520 "\\03\\e0\\fd\\a0" ;; "\\e0\\fd\\a0"
521 "\\03" ;; GlobalImport
522 "\\7f" ;; i32
523 "\\00" ;; immutable
524 )`),
525 `malformed UTF-8 encoding`,
526 );
527
528 // ./test/core/utf8-import-module.wast:524
529 assert_malformed(
530 () => instantiate(`(module binary
531 "\\00asm" "\\01\\00\\00\\00"
532 "\\02\\0d" ;; import section
533 "\\01" ;; length 1
534 "\\04\\74\\65\\73\\74" ;; "test"
535 "\\03\\e1\\00\\80" ;; "\\e1\\00\\80"
536 "\\03" ;; GlobalImport
537 "\\7f" ;; i32
538 "\\00" ;; immutable
539 )`),
540 `malformed UTF-8 encoding`,
541 );
542
543 // ./test/core/utf8-import-module.wast:539
544 assert_malformed(
545 () => instantiate(`(module binary
546 "\\00asm" "\\01\\00\\00\\00"
547 "\\02\\0d" ;; import section
548 "\\01" ;; length 1
549 "\\04\\74\\65\\73\\74" ;; "test"
550 "\\03\\e1\\7f\\80" ;; "\\e1\\7f\\80"
551 "\\03" ;; GlobalImport
552 "\\7f" ;; i32
553 "\\00" ;; immutable
554 )`),
555 `malformed UTF-8 encoding`,
556 );
557
558 // ./test/core/utf8-import-module.wast:554
559 assert_malformed(
560 () => instantiate(`(module binary
561 "\\00asm" "\\01\\00\\00\\00"
562 "\\02\\0d" ;; import section
563 "\\01" ;; length 1
564 "\\04\\74\\65\\73\\74" ;; "test"
565 "\\03\\e1\\c0\\80" ;; "\\e1\\c0\\80"
566 "\\03" ;; GlobalImport
567 "\\7f" ;; i32
568 "\\00" ;; immutable
569 )`),
570 `malformed UTF-8 encoding`,
571 );
572
573 // ./test/core/utf8-import-module.wast:569
574 assert_malformed(
575 () => instantiate(`(module binary
576 "\\00asm" "\\01\\00\\00\\00"
577 "\\02\\0d" ;; import section
578 "\\01" ;; length 1
579 "\\04\\74\\65\\73\\74" ;; "test"
580 "\\03\\e1\\fd\\80" ;; "\\e1\\fd\\80"
581 "\\03" ;; GlobalImport
582 "\\7f" ;; i32
583 "\\00" ;; immutable
584 )`),
585 `malformed UTF-8 encoding`,
586 );
587
588 // ./test/core/utf8-import-module.wast:584
589 assert_malformed(
590 () => instantiate(`(module binary
591 "\\00asm" "\\01\\00\\00\\00"
592 "\\02\\0d" ;; import section
593 "\\01" ;; length 1
594 "\\04\\74\\65\\73\\74" ;; "test"
595 "\\03\\ec\\00\\80" ;; "\\ec\\00\\80"
596 "\\03" ;; GlobalImport
597 "\\7f" ;; i32
598 "\\00" ;; immutable
599 )`),
600 `malformed UTF-8 encoding`,
601 );
602
603 // ./test/core/utf8-import-module.wast:599
604 assert_malformed(
605 () => instantiate(`(module binary
606 "\\00asm" "\\01\\00\\00\\00"
607 "\\02\\0d" ;; import section
608 "\\01" ;; length 1
609 "\\04\\74\\65\\73\\74" ;; "test"
610 "\\03\\ec\\7f\\80" ;; "\\ec\\7f\\80"
611 "\\03" ;; GlobalImport
612 "\\7f" ;; i32
613 "\\00" ;; immutable
614 )`),
615 `malformed UTF-8 encoding`,
616 );
617
618 // ./test/core/utf8-import-module.wast:614
619 assert_malformed(
620 () => instantiate(`(module binary
621 "\\00asm" "\\01\\00\\00\\00"
622 "\\02\\0d" ;; import section
623 "\\01" ;; length 1
624 "\\04\\74\\65\\73\\74" ;; "test"
625 "\\03\\ec\\c0\\80" ;; "\\ec\\c0\\80"
626 "\\03" ;; GlobalImport
627 "\\7f" ;; i32
628 "\\00" ;; immutable
629 )`),
630 `malformed UTF-8 encoding`,
631 );
632
633 // ./test/core/utf8-import-module.wast:629
634 assert_malformed(
635 () => instantiate(`(module binary
636 "\\00asm" "\\01\\00\\00\\00"
637 "\\02\\0d" ;; import section
638 "\\01" ;; length 1
639 "\\04\\74\\65\\73\\74" ;; "test"
640 "\\03\\ec\\fd\\80" ;; "\\ec\\fd\\80"
641 "\\03" ;; GlobalImport
642 "\\7f" ;; i32
643 "\\00" ;; immutable
644 )`),
645 `malformed UTF-8 encoding`,
646 );
647
648 // ./test/core/utf8-import-module.wast:644
649 assert_malformed(
650 () => instantiate(`(module binary
651 "\\00asm" "\\01\\00\\00\\00"
652 "\\02\\0d" ;; import section
653 "\\01" ;; length 1
654 "\\04\\74\\65\\73\\74" ;; "test"
655 "\\03\\ed\\00\\80" ;; "\\ed\\00\\80"
656 "\\03" ;; GlobalImport
657 "\\7f" ;; i32
658 "\\00" ;; immutable
659 )`),
660 `malformed UTF-8 encoding`,
661 );
662
663 // ./test/core/utf8-import-module.wast:659
664 assert_malformed(
665 () => instantiate(`(module binary
666 "\\00asm" "\\01\\00\\00\\00"
667 "\\02\\0d" ;; import section
668 "\\01" ;; length 1
669 "\\04\\74\\65\\73\\74" ;; "test"
670 "\\03\\ed\\7f\\80" ;; "\\ed\\7f\\80"
671 "\\03" ;; GlobalImport
672 "\\7f" ;; i32
673 "\\00" ;; immutable
674 )`),
675 `malformed UTF-8 encoding`,
676 );
677
678 // ./test/core/utf8-import-module.wast:674
679 assert_malformed(
680 () => instantiate(`(module binary
681 "\\00asm" "\\01\\00\\00\\00"
682 "\\02\\0d" ;; import section
683 "\\01" ;; length 1
684 "\\04\\74\\65\\73\\74" ;; "test"
685 "\\03\\ed\\a0\\80" ;; "\\ed\\a0\\80"
686 "\\03" ;; GlobalImport
687 "\\7f" ;; i32
688 "\\00" ;; immutable
689 )`),
690 `malformed UTF-8 encoding`,
691 );
692
693 // ./test/core/utf8-import-module.wast:689
694 assert_malformed(
695 () => instantiate(`(module binary
696 "\\00asm" "\\01\\00\\00\\00"
697 "\\02\\0d" ;; import section
698 "\\01" ;; length 1
699 "\\04\\74\\65\\73\\74" ;; "test"
700 "\\03\\ed\\a0\\bf" ;; "\\ed\\a0\\bf"
701 "\\03" ;; GlobalImport
702 "\\7f" ;; i32
703 "\\00" ;; immutable
704 )`),
705 `malformed UTF-8 encoding`,
706 );
707
708 // ./test/core/utf8-import-module.wast:704
709 assert_malformed(
710 () => instantiate(`(module binary
711 "\\00asm" "\\01\\00\\00\\00"
712 "\\02\\0d" ;; import section
713 "\\01" ;; length 1
714 "\\04\\74\\65\\73\\74" ;; "test"
715 "\\03\\ed\\bf\\80" ;; "\\ed\\bf\\80"
716 "\\03" ;; GlobalImport
717 "\\7f" ;; i32
718 "\\00" ;; immutable
719 )`),
720 `malformed UTF-8 encoding`,
721 );
722
723 // ./test/core/utf8-import-module.wast:719
724 assert_malformed(
725 () => instantiate(`(module binary
726 "\\00asm" "\\01\\00\\00\\00"
727 "\\02\\0d" ;; import section
728 "\\01" ;; length 1
729 "\\04\\74\\65\\73\\74" ;; "test"
730 "\\03\\ed\\bf\\bf" ;; "\\ed\\bf\\bf"
731 "\\03" ;; GlobalImport
732 "\\7f" ;; i32
733 "\\00" ;; immutable
734 )`),
735 `malformed UTF-8 encoding`,
736 );
737
738 // ./test/core/utf8-import-module.wast:734
739 assert_malformed(
740 () => instantiate(`(module binary
741 "\\00asm" "\\01\\00\\00\\00"
742 "\\02\\0d" ;; import section
743 "\\01" ;; length 1
744 "\\04\\74\\65\\73\\74" ;; "test"
745 "\\03\\ed\\c0\\80" ;; "\\ed\\c0\\80"
746 "\\03" ;; GlobalImport
747 "\\7f" ;; i32
748 "\\00" ;; immutable
749 )`),
750 `malformed UTF-8 encoding`,
751 );
752
753 // ./test/core/utf8-import-module.wast:749
754 assert_malformed(
755 () => instantiate(`(module binary
756 "\\00asm" "\\01\\00\\00\\00"
757 "\\02\\0d" ;; import section
758 "\\01" ;; length 1
759 "\\04\\74\\65\\73\\74" ;; "test"
760 "\\03\\ed\\fd\\80" ;; "\\ed\\fd\\80"
761 "\\03" ;; GlobalImport
762 "\\7f" ;; i32
763 "\\00" ;; immutable
764 )`),
765 `malformed UTF-8 encoding`,
766 );
767
768 // ./test/core/utf8-import-module.wast:764
769 assert_malformed(
770 () => instantiate(`(module binary
771 "\\00asm" "\\01\\00\\00\\00"
772 "\\02\\0d" ;; import section
773 "\\01" ;; length 1
774 "\\04\\74\\65\\73\\74" ;; "test"
775 "\\03\\ee\\00\\80" ;; "\\ee\\00\\80"
776 "\\03" ;; GlobalImport
777 "\\7f" ;; i32
778 "\\00" ;; immutable
779 )`),
780 `malformed UTF-8 encoding`,
781 );
782
783 // ./test/core/utf8-import-module.wast:779
784 assert_malformed(
785 () => instantiate(`(module binary
786 "\\00asm" "\\01\\00\\00\\00"
787 "\\02\\0d" ;; import section
788 "\\01" ;; length 1
789 "\\04\\74\\65\\73\\74" ;; "test"
790 "\\03\\ee\\7f\\80" ;; "\\ee\\7f\\80"
791 "\\03" ;; GlobalImport
792 "\\7f" ;; i32
793 "\\00" ;; immutable
794 )`),
795 `malformed UTF-8 encoding`,
796 );
797
798 // ./test/core/utf8-import-module.wast:794
799 assert_malformed(
800 () => instantiate(`(module binary
801 "\\00asm" "\\01\\00\\00\\00"
802 "\\02\\0d" ;; import section
803 "\\01" ;; length 1
804 "\\04\\74\\65\\73\\74" ;; "test"
805 "\\03\\ee\\c0\\80" ;; "\\ee\\c0\\80"
806 "\\03" ;; GlobalImport
807 "\\7f" ;; i32
808 "\\00" ;; immutable
809 )`),
810 `malformed UTF-8 encoding`,
811 );
812
813 // ./test/core/utf8-import-module.wast:809
814 assert_malformed(
815 () => instantiate(`(module binary
816 "\\00asm" "\\01\\00\\00\\00"
817 "\\02\\0d" ;; import section
818 "\\01" ;; length 1
819 "\\04\\74\\65\\73\\74" ;; "test"
820 "\\03\\ee\\fd\\80" ;; "\\ee\\fd\\80"
821 "\\03" ;; GlobalImport
822 "\\7f" ;; i32
823 "\\00" ;; immutable
824 )`),
825 `malformed UTF-8 encoding`,
826 );
827
828 // ./test/core/utf8-import-module.wast:824
829 assert_malformed(
830 () => instantiate(`(module binary
831 "\\00asm" "\\01\\00\\00\\00"
832 "\\02\\0d" ;; import section
833 "\\01" ;; length 1
834 "\\04\\74\\65\\73\\74" ;; "test"
835 "\\03\\ef\\00\\80" ;; "\\ef\\00\\80"
836 "\\03" ;; GlobalImport
837 "\\7f" ;; i32
838 "\\00" ;; immutable
839 )`),
840 `malformed UTF-8 encoding`,
841 );
842
843 // ./test/core/utf8-import-module.wast:839
844 assert_malformed(
845 () => instantiate(`(module binary
846 "\\00asm" "\\01\\00\\00\\00"
847 "\\02\\0d" ;; import section
848 "\\01" ;; length 1
849 "\\04\\74\\65\\73\\74" ;; "test"
850 "\\03\\ef\\7f\\80" ;; "\\ef\\7f\\80"
851 "\\03" ;; GlobalImport
852 "\\7f" ;; i32
853 "\\00" ;; immutable
854 )`),
855 `malformed UTF-8 encoding`,
856 );
857
858 // ./test/core/utf8-import-module.wast:854
859 assert_malformed(
860 () => instantiate(`(module binary
861 "\\00asm" "\\01\\00\\00\\00"
862 "\\02\\0d" ;; import section
863 "\\01" ;; length 1
864 "\\04\\74\\65\\73\\74" ;; "test"
865 "\\03\\ef\\c0\\80" ;; "\\ef\\c0\\80"
866 "\\03" ;; GlobalImport
867 "\\7f" ;; i32
868 "\\00" ;; immutable
869 )`),
870 `malformed UTF-8 encoding`,
871 );
872
873 // ./test/core/utf8-import-module.wast:869
874 assert_malformed(
875 () => instantiate(`(module binary
876 "\\00asm" "\\01\\00\\00\\00"
877 "\\02\\0d" ;; import section
878 "\\01" ;; length 1
879 "\\04\\74\\65\\73\\74" ;; "test"
880 "\\03\\ef\\fd\\80" ;; "\\ef\\fd\\80"
881 "\\03" ;; GlobalImport
882 "\\7f" ;; i32
883 "\\00" ;; immutable
884 )`),
885 `malformed UTF-8 encoding`,
886 );
887
888 // ./test/core/utf8-import-module.wast:886
889 assert_malformed(
890 () => instantiate(`(module binary
891 "\\00asm" "\\01\\00\\00\\00"
892 "\\02\\0d" ;; import section
893 "\\01" ;; length 1
894 "\\04\\74\\65\\73\\74" ;; "test"
895 "\\03\\e0\\a0\\00" ;; "\\e0\\a0\\00"
896 "\\03" ;; GlobalImport
897 "\\7f" ;; i32
898 "\\00" ;; immutable
899 )`),
900 `malformed UTF-8 encoding`,
901 );
902
903 // ./test/core/utf8-import-module.wast:901
904 assert_malformed(
905 () => instantiate(`(module binary
906 "\\00asm" "\\01\\00\\00\\00"
907 "\\02\\0d" ;; import section
908 "\\01" ;; length 1
909 "\\04\\74\\65\\73\\74" ;; "test"
910 "\\03\\e0\\a0\\7f" ;; "\\e0\\a0\\7f"
911 "\\03" ;; GlobalImport
912 "\\7f" ;; i32
913 "\\00" ;; immutable
914 )`),
915 `malformed UTF-8 encoding`,
916 );
917
918 // ./test/core/utf8-import-module.wast:916
919 assert_malformed(
920 () => instantiate(`(module binary
921 "\\00asm" "\\01\\00\\00\\00"
922 "\\02\\0d" ;; import section
923 "\\01" ;; length 1
924 "\\04\\74\\65\\73\\74" ;; "test"
925 "\\03\\e0\\a0\\c0" ;; "\\e0\\a0\\c0"
926 "\\03" ;; GlobalImport
927 "\\7f" ;; i32
928 "\\00" ;; immutable
929 )`),
930 `malformed UTF-8 encoding`,
931 );
932
933 // ./test/core/utf8-import-module.wast:931
934 assert_malformed(
935 () => instantiate(`(module binary
936 "\\00asm" "\\01\\00\\00\\00"
937 "\\02\\0d" ;; import section
938 "\\01" ;; length 1
939 "\\04\\74\\65\\73\\74" ;; "test"
940 "\\03\\e0\\a0\\fd" ;; "\\e0\\a0\\fd"
941 "\\03" ;; GlobalImport
942 "\\7f" ;; i32
943 "\\00" ;; immutable
944 )`),
945 `malformed UTF-8 encoding`,
946 );
947
948 // ./test/core/utf8-import-module.wast:946
949 assert_malformed(
950 () => instantiate(`(module binary
951 "\\00asm" "\\01\\00\\00\\00"
952 "\\02\\0d" ;; import section
953 "\\01" ;; length 1
954 "\\04\\74\\65\\73\\74" ;; "test"
955 "\\03\\e1\\80\\00" ;; "\\e1\\80\\00"
956 "\\03" ;; GlobalImport
957 "\\7f" ;; i32
958 "\\00" ;; immutable
959 )`),
960 `malformed UTF-8 encoding`,
961 );
962
963 // ./test/core/utf8-import-module.wast:961
964 assert_malformed(
965 () => instantiate(`(module binary
966 "\\00asm" "\\01\\00\\00\\00"
967 "\\02\\0d" ;; import section
968 "\\01" ;; length 1
969 "\\04\\74\\65\\73\\74" ;; "test"
970 "\\03\\e1\\80\\7f" ;; "\\e1\\80\\7f"
971 "\\03" ;; GlobalImport
972 "\\7f" ;; i32
973 "\\00" ;; immutable
974 )`),
975 `malformed UTF-8 encoding`,
976 );
977
978 // ./test/core/utf8-import-module.wast:976
979 assert_malformed(
980 () => instantiate(`(module binary
981 "\\00asm" "\\01\\00\\00\\00"
982 "\\02\\0d" ;; import section
983 "\\01" ;; length 1
984 "\\04\\74\\65\\73\\74" ;; "test"
985 "\\03\\e1\\80\\c0" ;; "\\e1\\80\\c0"
986 "\\03" ;; GlobalImport
987 "\\7f" ;; i32
988 "\\00" ;; immutable
989 )`),
990 `malformed UTF-8 encoding`,
991 );
992
993 // ./test/core/utf8-import-module.wast:991
994 assert_malformed(
995 () => instantiate(`(module binary
996 "\\00asm" "\\01\\00\\00\\00"
997 "\\02\\0d" ;; import section
998 "\\01" ;; length 1
999 "\\04\\74\\65\\73\\74" ;; "test"
1000 "\\03\\e1\\80\\fd" ;; "\\e1\\80\\fd"
1001 "\\03" ;; GlobalImport
1002 "\\7f" ;; i32
1003 "\\00" ;; immutable
1004 )`),
1005 `malformed UTF-8 encoding`,
1006 );
1007
1008 // ./test/core/utf8-import-module.wast:1006
1009 assert_malformed(
1010 () => instantiate(`(module binary
1011 "\\00asm" "\\01\\00\\00\\00"
1012 "\\02\\0d" ;; import section
1013 "\\01" ;; length 1
1014 "\\04\\74\\65\\73\\74" ;; "test"
1015 "\\03\\ec\\80\\00" ;; "\\ec\\80\\00"
1016 "\\03" ;; GlobalImport
1017 "\\7f" ;; i32
1018 "\\00" ;; immutable
1019 )`),
1020 `malformed UTF-8 encoding`,
1021 );
1022
1023 // ./test/core/utf8-import-module.wast:1021
1024 assert_malformed(
1025 () => instantiate(`(module binary
1026 "\\00asm" "\\01\\00\\00\\00"
1027 "\\02\\0d" ;; import section
1028 "\\01" ;; length 1
1029 "\\04\\74\\65\\73\\74" ;; "test"
1030 "\\03\\ec\\80\\7f" ;; "\\ec\\80\\7f"
1031 "\\03" ;; GlobalImport
1032 "\\7f" ;; i32
1033 "\\00" ;; immutable
1034 )`),
1035 `malformed UTF-8 encoding`,
1036 );
1037
1038 // ./test/core/utf8-import-module.wast:1036
1039 assert_malformed(
1040 () => instantiate(`(module binary
1041 "\\00asm" "\\01\\00\\00\\00"
1042 "\\02\\0d" ;; import section
1043 "\\01" ;; length 1
1044 "\\04\\74\\65\\73\\74" ;; "test"
1045 "\\03\\ec\\80\\c0" ;; "\\ec\\80\\c0"
1046 "\\03" ;; GlobalImport
1047 "\\7f" ;; i32
1048 "\\00" ;; immutable
1049 )`),
1050 `malformed UTF-8 encoding`,
1051 );
1052
1053 // ./test/core/utf8-import-module.wast:1051
1054 assert_malformed(
1055 () => instantiate(`(module binary
1056 "\\00asm" "\\01\\00\\00\\00"
1057 "\\02\\0d" ;; import section
1058 "\\01" ;; length 1
1059 "\\04\\74\\65\\73\\74" ;; "test"
1060 "\\03\\ec\\80\\fd" ;; "\\ec\\80\\fd"
1061 "\\03" ;; GlobalImport
1062 "\\7f" ;; i32
1063 "\\00" ;; immutable
1064 )`),
1065 `malformed UTF-8 encoding`,
1066 );
1067
1068 // ./test/core/utf8-import-module.wast:1066
1069 assert_malformed(
1070 () => instantiate(`(module binary
1071 "\\00asm" "\\01\\00\\00\\00"
1072 "\\02\\0d" ;; import section
1073 "\\01" ;; length 1
1074 "\\04\\74\\65\\73\\74" ;; "test"
1075 "\\03\\ed\\80\\00" ;; "\\ed\\80\\00"
1076 "\\03" ;; GlobalImport
1077 "\\7f" ;; i32
1078 "\\00" ;; immutable
1079 )`),
1080 `malformed UTF-8 encoding`,
1081 );
1082
1083 // ./test/core/utf8-import-module.wast:1081
1084 assert_malformed(
1085 () => instantiate(`(module binary
1086 "\\00asm" "\\01\\00\\00\\00"
1087 "\\02\\0d" ;; import section
1088 "\\01" ;; length 1
1089 "\\04\\74\\65\\73\\74" ;; "test"
1090 "\\03\\ed\\80\\7f" ;; "\\ed\\80\\7f"
1091 "\\03" ;; GlobalImport
1092 "\\7f" ;; i32
1093 "\\00" ;; immutable
1094 )`),
1095 `malformed UTF-8 encoding`,
1096 );
1097
1098 // ./test/core/utf8-import-module.wast:1096
1099 assert_malformed(
1100 () => instantiate(`(module binary
1101 "\\00asm" "\\01\\00\\00\\00"
1102 "\\02\\0d" ;; import section
1103 "\\01" ;; length 1
1104 "\\04\\74\\65\\73\\74" ;; "test"
1105 "\\03\\ed\\80\\c0" ;; "\\ed\\80\\c0"
1106 "\\03" ;; GlobalImport
1107 "\\7f" ;; i32
1108 "\\00" ;; immutable
1109 )`),
1110 `malformed UTF-8 encoding`,
1111 );
1112
1113 // ./test/core/utf8-import-module.wast:1111
1114 assert_malformed(
1115 () => instantiate(`(module binary
1116 "\\00asm" "\\01\\00\\00\\00"
1117 "\\02\\0d" ;; import section
1118 "\\01" ;; length 1
1119 "\\04\\74\\65\\73\\74" ;; "test"
1120 "\\03\\ed\\80\\fd" ;; "\\ed\\80\\fd"
1121 "\\03" ;; GlobalImport
1122 "\\7f" ;; i32
1123 "\\00" ;; immutable
1124 )`),
1125 `malformed UTF-8 encoding`,
1126 );
1127
1128 // ./test/core/utf8-import-module.wast:1126
1129 assert_malformed(
1130 () => instantiate(`(module binary
1131 "\\00asm" "\\01\\00\\00\\00"
1132 "\\02\\0d" ;; import section
1133 "\\01" ;; length 1
1134 "\\04\\74\\65\\73\\74" ;; "test"
1135 "\\03\\ee\\80\\00" ;; "\\ee\\80\\00"
1136 "\\03" ;; GlobalImport
1137 "\\7f" ;; i32
1138 "\\00" ;; immutable
1139 )`),
1140 `malformed UTF-8 encoding`,
1141 );
1142
1143 // ./test/core/utf8-import-module.wast:1141
1144 assert_malformed(
1145 () => instantiate(`(module binary
1146 "\\00asm" "\\01\\00\\00\\00"
1147 "\\02\\0d" ;; import section
1148 "\\01" ;; length 1
1149 "\\04\\74\\65\\73\\74" ;; "test"
1150 "\\03\\ee\\80\\7f" ;; "\\ee\\80\\7f"
1151 "\\03" ;; GlobalImport
1152 "\\7f" ;; i32
1153 "\\00" ;; immutable
1154 )`),
1155 `malformed UTF-8 encoding`,
1156 );
1157
1158 // ./test/core/utf8-import-module.wast:1156
1159 assert_malformed(
1160 () => instantiate(`(module binary
1161 "\\00asm" "\\01\\00\\00\\00"
1162 "\\02\\0d" ;; import section
1163 "\\01" ;; length 1
1164 "\\04\\74\\65\\73\\74" ;; "test"
1165 "\\03\\ee\\80\\c0" ;; "\\ee\\80\\c0"
1166 "\\03" ;; GlobalImport
1167 "\\7f" ;; i32
1168 "\\00" ;; immutable
1169 )`),
1170 `malformed UTF-8 encoding`,
1171 );
1172
1173 // ./test/core/utf8-import-module.wast:1171
1174 assert_malformed(
1175 () => instantiate(`(module binary
1176 "\\00asm" "\\01\\00\\00\\00"
1177 "\\02\\0d" ;; import section
1178 "\\01" ;; length 1
1179 "\\04\\74\\65\\73\\74" ;; "test"
1180 "\\03\\ee\\80\\fd" ;; "\\ee\\80\\fd"
1181 "\\03" ;; GlobalImport
1182 "\\7f" ;; i32
1183 "\\00" ;; immutable
1184 )`),
1185 `malformed UTF-8 encoding`,
1186 );
1187
1188 // ./test/core/utf8-import-module.wast:1186
1189 assert_malformed(
1190 () => instantiate(`(module binary
1191 "\\00asm" "\\01\\00\\00\\00"
1192 "\\02\\0d" ;; import section
1193 "\\01" ;; length 1
1194 "\\04\\74\\65\\73\\74" ;; "test"
1195 "\\03\\ef\\80\\00" ;; "\\ef\\80\\00"
1196 "\\03" ;; GlobalImport
1197 "\\7f" ;; i32
1198 "\\00" ;; immutable
1199 )`),
1200 `malformed UTF-8 encoding`,
1201 );
1202
1203 // ./test/core/utf8-import-module.wast:1201
1204 assert_malformed(
1205 () => instantiate(`(module binary
1206 "\\00asm" "\\01\\00\\00\\00"
1207 "\\02\\0d" ;; import section
1208 "\\01" ;; length 1
1209 "\\04\\74\\65\\73\\74" ;; "test"
1210 "\\03\\ef\\80\\7f" ;; "\\ef\\80\\7f"
1211 "\\03" ;; GlobalImport
1212 "\\7f" ;; i32
1213 "\\00" ;; immutable
1214 )`),
1215 `malformed UTF-8 encoding`,
1216 );
1217
1218 // ./test/core/utf8-import-module.wast:1216
1219 assert_malformed(
1220 () => instantiate(`(module binary
1221 "\\00asm" "\\01\\00\\00\\00"
1222 "\\02\\0d" ;; import section
1223 "\\01" ;; length 1
1224 "\\04\\74\\65\\73\\74" ;; "test"
1225 "\\03\\ef\\80\\c0" ;; "\\ef\\80\\c0"
1226 "\\03" ;; GlobalImport
1227 "\\7f" ;; i32
1228 "\\00" ;; immutable
1229 )`),
1230 `malformed UTF-8 encoding`,
1231 );
1232
1233 // ./test/core/utf8-import-module.wast:1231
1234 assert_malformed(
1235 () => instantiate(`(module binary
1236 "\\00asm" "\\01\\00\\00\\00"
1237 "\\02\\0d" ;; import section
1238 "\\01" ;; length 1
1239 "\\04\\74\\65\\73\\74" ;; "test"
1240 "\\03\\ef\\80\\fd" ;; "\\ef\\80\\fd"
1241 "\\03" ;; GlobalImport
1242 "\\7f" ;; i32
1243 "\\00" ;; immutable
1244 )`),
1245 `malformed UTF-8 encoding`,
1246 );
1247
1248 // ./test/core/utf8-import-module.wast:1248
1249 assert_malformed(
1250 () => instantiate(`(module binary
1251 "\\00asm" "\\01\\00\\00\\00"
1252 "\\02\\0f" ;; import section
1253 "\\01" ;; length 1
1254 "\\04\\74\\65\\73\\74" ;; "test"
1255 "\\05\\f1\\80\\80\\80\\80" ;; "\\f1\\80\\80\\80\\80"
1256 "\\03" ;; GlobalImport
1257 "\\7f" ;; i32
1258 "\\00" ;; immutable
1259 )`),
1260 `malformed UTF-8 encoding`,
1261 );
1262
1263 // ./test/core/utf8-import-module.wast:1263
1264 assert_malformed(
1265 () => instantiate(`(module binary
1266 "\\00asm" "\\01\\00\\00\\00"
1267 "\\02\\0d" ;; import section
1268 "\\01" ;; length 1
1269 "\\04\\74\\65\\73\\74" ;; "test"
1270 "\\03\\f1\\80\\80" ;; "\\f1\\80\\80"
1271 "\\03" ;; GlobalImport
1272 "\\7f" ;; i32
1273 "\\00" ;; immutable
1274 )`),
1275 `malformed UTF-8 encoding`,
1276 );
1277
1278 // ./test/core/utf8-import-module.wast:1278
1279 assert_malformed(
1280 () => instantiate(`(module binary
1281 "\\00asm" "\\01\\00\\00\\00"
1282 "\\02\\0e" ;; import section
1283 "\\01" ;; length 1
1284 "\\04\\74\\65\\73\\74" ;; "test"
1285 "\\04\\f1\\80\\80\\23" ;; "\\f1\\80\\80#"
1286 "\\03" ;; GlobalImport
1287 "\\7f" ;; i32
1288 "\\00" ;; immutable
1289 )`),
1290 `malformed UTF-8 encoding`,
1291 );
1292
1293 // ./test/core/utf8-import-module.wast:1293
1294 assert_malformed(
1295 () => instantiate(`(module binary
1296 "\\00asm" "\\01\\00\\00\\00"
1297 "\\02\\0c" ;; import section
1298 "\\01" ;; length 1
1299 "\\04\\74\\65\\73\\74" ;; "test"
1300 "\\02\\f1\\80" ;; "\\f1\\80"
1301 "\\03" ;; GlobalImport
1302 "\\7f" ;; i32
1303 "\\00" ;; immutable
1304 )`),
1305 `malformed UTF-8 encoding`,
1306 );
1307
1308 // ./test/core/utf8-import-module.wast:1308
1309 assert_malformed(
1310 () => instantiate(`(module binary
1311 "\\00asm" "\\01\\00\\00\\00"
1312 "\\02\\0d" ;; import section
1313 "\\01" ;; length 1
1314 "\\04\\74\\65\\73\\74" ;; "test"
1315 "\\03\\f1\\80\\23" ;; "\\f1\\80#"
1316 "\\03" ;; GlobalImport
1317 "\\7f" ;; i32
1318 "\\00" ;; immutable
1319 )`),
1320 `malformed UTF-8 encoding`,
1321 );
1322
1323 // ./test/core/utf8-import-module.wast:1323
1324 assert_malformed(
1325 () => instantiate(`(module binary
1326 "\\00asm" "\\01\\00\\00\\00"
1327 "\\02\\0b" ;; import section
1328 "\\01" ;; length 1
1329 "\\04\\74\\65\\73\\74" ;; "test"
1330 "\\01\\f1" ;; "\\f1"
1331 "\\03" ;; GlobalImport
1332 "\\7f" ;; i32
1333 "\\00" ;; immutable
1334 )`),
1335 `malformed UTF-8 encoding`,
1336 );
1337
1338 // ./test/core/utf8-import-module.wast:1338
1339 assert_malformed(
1340 () => instantiate(`(module binary
1341 "\\00asm" "\\01\\00\\00\\00"
1342 "\\02\\0c" ;; import section
1343 "\\01" ;; length 1
1344 "\\04\\74\\65\\73\\74" ;; "test"
1345 "\\02\\f1\\23" ;; "\\f1#"
1346 "\\03" ;; GlobalImport
1347 "\\7f" ;; i32
1348 "\\00" ;; immutable
1349 )`),
1350 `malformed UTF-8 encoding`,
1351 );
1352
1353 // ./test/core/utf8-import-module.wast:1355
1354 assert_malformed(
1355 () => instantiate(`(module binary
1356 "\\00asm" "\\01\\00\\00\\00"
1357 "\\02\\0e" ;; import section
1358 "\\01" ;; length 1
1359 "\\04\\74\\65\\73\\74" ;; "test"
1360 "\\04\\f0\\00\\90\\90" ;; "\\f0\\00\\90\\90"
1361 "\\03" ;; GlobalImport
1362 "\\7f" ;; i32
1363 "\\00" ;; immutable
1364 )`),
1365 `malformed UTF-8 encoding`,
1366 );
1367
1368 // ./test/core/utf8-import-module.wast:1370
1369 assert_malformed(
1370 () => instantiate(`(module binary
1371 "\\00asm" "\\01\\00\\00\\00"
1372 "\\02\\0e" ;; import section
1373 "\\01" ;; length 1
1374 "\\04\\74\\65\\73\\74" ;; "test"
1375 "\\04\\f0\\7f\\90\\90" ;; "\\f0\\7f\\90\\90"
1376 "\\03" ;; GlobalImport
1377 "\\7f" ;; i32
1378 "\\00" ;; immutable
1379 )`),
1380 `malformed UTF-8 encoding`,
1381 );
1382
1383 // ./test/core/utf8-import-module.wast:1385
1384 assert_malformed(
1385 () => instantiate(`(module binary
1386 "\\00asm" "\\01\\00\\00\\00"
1387 "\\02\\0e" ;; import section
1388 "\\01" ;; length 1
1389 "\\04\\74\\65\\73\\74" ;; "test"
1390 "\\04\\f0\\80\\80\\80" ;; "\\f0\\80\\80\\80"
1391 "\\03" ;; GlobalImport
1392 "\\7f" ;; i32
1393 "\\00" ;; immutable
1394 )`),
1395 `malformed UTF-8 encoding`,
1396 );
1397
1398 // ./test/core/utf8-import-module.wast:1400
1399 assert_malformed(
1400 () => instantiate(`(module binary
1401 "\\00asm" "\\01\\00\\00\\00"
1402 "\\02\\0e" ;; import section
1403 "\\01" ;; length 1
1404 "\\04\\74\\65\\73\\74" ;; "test"
1405 "\\04\\f0\\80\\90\\90" ;; "\\f0\\80\\90\\90"
1406 "\\03" ;; GlobalImport
1407 "\\7f" ;; i32
1408 "\\00" ;; immutable
1409 )`),
1410 `malformed UTF-8 encoding`,
1411 );
1412
1413 // ./test/core/utf8-import-module.wast:1415
1414 assert_malformed(
1415 () => instantiate(`(module binary
1416 "\\00asm" "\\01\\00\\00\\00"
1417 "\\02\\0e" ;; import section
1418 "\\01" ;; length 1
1419 "\\04\\74\\65\\73\\74" ;; "test"
1420 "\\04\\f0\\8f\\90\\90" ;; "\\f0\\8f\\90\\90"
1421 "\\03" ;; GlobalImport
1422 "\\7f" ;; i32
1423 "\\00" ;; immutable
1424 )`),
1425 `malformed UTF-8 encoding`,
1426 );
1427
1428 // ./test/core/utf8-import-module.wast:1430
1429 assert_malformed(
1430 () => instantiate(`(module binary
1431 "\\00asm" "\\01\\00\\00\\00"
1432 "\\02\\0e" ;; import section
1433 "\\01" ;; length 1
1434 "\\04\\74\\65\\73\\74" ;; "test"
1435 "\\04\\f0\\8f\\bf\\bf" ;; "\\f0\\8f\\bf\\bf"
1436 "\\03" ;; GlobalImport
1437 "\\7f" ;; i32
1438 "\\00" ;; immutable
1439 )`),
1440 `malformed UTF-8 encoding`,
1441 );
1442
1443 // ./test/core/utf8-import-module.wast:1445
1444 assert_malformed(
1445 () => instantiate(`(module binary
1446 "\\00asm" "\\01\\00\\00\\00"
1447 "\\02\\0e" ;; import section
1448 "\\01" ;; length 1
1449 "\\04\\74\\65\\73\\74" ;; "test"
1450 "\\04\\f0\\c0\\90\\90" ;; "\\f0\\c0\\90\\90"
1451 "\\03" ;; GlobalImport
1452 "\\7f" ;; i32
1453 "\\00" ;; immutable
1454 )`),
1455 `malformed UTF-8 encoding`,
1456 );
1457
1458 // ./test/core/utf8-import-module.wast:1460
1459 assert_malformed(
1460 () => instantiate(`(module binary
1461 "\\00asm" "\\01\\00\\00\\00"
1462 "\\02\\0e" ;; import section
1463 "\\01" ;; length 1
1464 "\\04\\74\\65\\73\\74" ;; "test"
1465 "\\04\\f0\\fd\\90\\90" ;; "\\f0\\fd\\90\\90"
1466 "\\03" ;; GlobalImport
1467 "\\7f" ;; i32
1468 "\\00" ;; immutable
1469 )`),
1470 `malformed UTF-8 encoding`,
1471 );
1472
1473 // ./test/core/utf8-import-module.wast:1475
1474 assert_malformed(
1475 () => instantiate(`(module binary
1476 "\\00asm" "\\01\\00\\00\\00"
1477 "\\02\\0e" ;; import section
1478 "\\01" ;; length 1
1479 "\\04\\74\\65\\73\\74" ;; "test"
1480 "\\04\\f1\\00\\80\\80" ;; "\\f1\\00\\80\\80"
1481 "\\03" ;; GlobalImport
1482 "\\7f" ;; i32
1483 "\\00" ;; immutable
1484 )`),
1485 `malformed UTF-8 encoding`,
1486 );
1487
1488 // ./test/core/utf8-import-module.wast:1490
1489 assert_malformed(
1490 () => instantiate(`(module binary
1491 "\\00asm" "\\01\\00\\00\\00"
1492 "\\02\\0e" ;; import section
1493 "\\01" ;; length 1
1494 "\\04\\74\\65\\73\\74" ;; "test"
1495 "\\04\\f1\\7f\\80\\80" ;; "\\f1\\7f\\80\\80"
1496 "\\03" ;; GlobalImport
1497 "\\7f" ;; i32
1498 "\\00" ;; immutable
1499 )`),
1500 `malformed UTF-8 encoding`,
1501 );
1502
1503 // ./test/core/utf8-import-module.wast:1505
1504 assert_malformed(
1505 () => instantiate(`(module binary
1506 "\\00asm" "\\01\\00\\00\\00"
1507 "\\02\\0e" ;; import section
1508 "\\01" ;; length 1
1509 "\\04\\74\\65\\73\\74" ;; "test"
1510 "\\04\\f1\\c0\\80\\80" ;; "\\f1\\c0\\80\\80"
1511 "\\03" ;; GlobalImport
1512 "\\7f" ;; i32
1513 "\\00" ;; immutable
1514 )`),
1515 `malformed UTF-8 encoding`,
1516 );
1517
1518 // ./test/core/utf8-import-module.wast:1520
1519 assert_malformed(
1520 () => instantiate(`(module binary
1521 "\\00asm" "\\01\\00\\00\\00"
1522 "\\02\\0e" ;; import section
1523 "\\01" ;; length 1
1524 "\\04\\74\\65\\73\\74" ;; "test"
1525 "\\04\\f1\\fd\\80\\80" ;; "\\f1\\fd\\80\\80"
1526 "\\03" ;; GlobalImport
1527 "\\7f" ;; i32
1528 "\\00" ;; immutable
1529 )`),
1530 `malformed UTF-8 encoding`,
1531 );
1532
1533 // ./test/core/utf8-import-module.wast:1535
1534 assert_malformed(
1535 () => instantiate(`(module binary
1536 "\\00asm" "\\01\\00\\00\\00"
1537 "\\02\\0e" ;; import section
1538 "\\01" ;; length 1
1539 "\\04\\74\\65\\73\\74" ;; "test"
1540 "\\04\\f3\\00\\80\\80" ;; "\\f3\\00\\80\\80"
1541 "\\03" ;; GlobalImport
1542 "\\7f" ;; i32
1543 "\\00" ;; immutable
1544 )`),
1545 `malformed UTF-8 encoding`,
1546 );
1547
1548 // ./test/core/utf8-import-module.wast:1550
1549 assert_malformed(
1550 () => instantiate(`(module binary
1551 "\\00asm" "\\01\\00\\00\\00"
1552 "\\02\\0e" ;; import section
1553 "\\01" ;; length 1
1554 "\\04\\74\\65\\73\\74" ;; "test"
1555 "\\04\\f3\\7f\\80\\80" ;; "\\f3\\7f\\80\\80"
1556 "\\03" ;; GlobalImport
1557 "\\7f" ;; i32
1558 "\\00" ;; immutable
1559 )`),
1560 `malformed UTF-8 encoding`,
1561 );
1562
1563 // ./test/core/utf8-import-module.wast:1565
1564 assert_malformed(
1565 () => instantiate(`(module binary
1566 "\\00asm" "\\01\\00\\00\\00"
1567 "\\02\\0e" ;; import section
1568 "\\01" ;; length 1
1569 "\\04\\74\\65\\73\\74" ;; "test"
1570 "\\04\\f3\\c0\\80\\80" ;; "\\f3\\c0\\80\\80"
1571 "\\03" ;; GlobalImport
1572 "\\7f" ;; i32
1573 "\\00" ;; immutable
1574 )`),
1575 `malformed UTF-8 encoding`,
1576 );
1577
1578 // ./test/core/utf8-import-module.wast:1580
1579 assert_malformed(
1580 () => instantiate(`(module binary
1581 "\\00asm" "\\01\\00\\00\\00"
1582 "\\02\\0e" ;; import section
1583 "\\01" ;; length 1
1584 "\\04\\74\\65\\73\\74" ;; "test"
1585 "\\04\\f3\\fd\\80\\80" ;; "\\f3\\fd\\80\\80"
1586 "\\03" ;; GlobalImport
1587 "\\7f" ;; i32
1588 "\\00" ;; immutable
1589 )`),
1590 `malformed UTF-8 encoding`,
1591 );
1592
1593 // ./test/core/utf8-import-module.wast:1595
1594 assert_malformed(
1595 () => instantiate(`(module binary
1596 "\\00asm" "\\01\\00\\00\\00"
1597 "\\02\\0e" ;; import section
1598 "\\01" ;; length 1
1599 "\\04\\74\\65\\73\\74" ;; "test"
1600 "\\04\\f4\\00\\80\\80" ;; "\\f4\\00\\80\\80"
1601 "\\03" ;; GlobalImport
1602 "\\7f" ;; i32
1603 "\\00" ;; immutable
1604 )`),
1605 `malformed UTF-8 encoding`,
1606 );
1607
1608 // ./test/core/utf8-import-module.wast:1610
1609 assert_malformed(
1610 () => instantiate(`(module binary
1611 "\\00asm" "\\01\\00\\00\\00"
1612 "\\02\\0e" ;; import section
1613 "\\01" ;; length 1
1614 "\\04\\74\\65\\73\\74" ;; "test"
1615 "\\04\\f4\\7f\\80\\80" ;; "\\f4\\7f\\80\\80"
1616 "\\03" ;; GlobalImport
1617 "\\7f" ;; i32
1618 "\\00" ;; immutable
1619 )`),
1620 `malformed UTF-8 encoding`,
1621 );
1622
1623 // ./test/core/utf8-import-module.wast:1625
1624 assert_malformed(
1625 () => instantiate(`(module binary
1626 "\\00asm" "\\01\\00\\00\\00"
1627 "\\02\\0e" ;; import section
1628 "\\01" ;; length 1
1629 "\\04\\74\\65\\73\\74" ;; "test"
1630 "\\04\\f4\\90\\80\\80" ;; "\\f4\\90\\80\\80"
1631 "\\03" ;; GlobalImport
1632 "\\7f" ;; i32
1633 "\\00" ;; immutable
1634 )`),
1635 `malformed UTF-8 encoding`,
1636 );
1637
1638 // ./test/core/utf8-import-module.wast:1640
1639 assert_malformed(
1640 () => instantiate(`(module binary
1641 "\\00asm" "\\01\\00\\00\\00"
1642 "\\02\\0e" ;; import section
1643 "\\01" ;; length 1
1644 "\\04\\74\\65\\73\\74" ;; "test"
1645 "\\04\\f4\\bf\\80\\80" ;; "\\f4\\bf\\80\\80"
1646 "\\03" ;; GlobalImport
1647 "\\7f" ;; i32
1648 "\\00" ;; immutable
1649 )`),
1650 `malformed UTF-8 encoding`,
1651 );
1652
1653 // ./test/core/utf8-import-module.wast:1655
1654 assert_malformed(
1655 () => instantiate(`(module binary
1656 "\\00asm" "\\01\\00\\00\\00"
1657 "\\02\\0e" ;; import section
1658 "\\01" ;; length 1
1659 "\\04\\74\\65\\73\\74" ;; "test"
1660 "\\04\\f4\\c0\\80\\80" ;; "\\f4\\c0\\80\\80"
1661 "\\03" ;; GlobalImport
1662 "\\7f" ;; i32
1663 "\\00" ;; immutable
1664 )`),
1665 `malformed UTF-8 encoding`,
1666 );
1667
1668 // ./test/core/utf8-import-module.wast:1670
1669 assert_malformed(
1670 () => instantiate(`(module binary
1671 "\\00asm" "\\01\\00\\00\\00"
1672 "\\02\\0e" ;; import section
1673 "\\01" ;; length 1
1674 "\\04\\74\\65\\73\\74" ;; "test"
1675 "\\04\\f4\\fd\\80\\80" ;; "\\f4\\fd\\80\\80"
1676 "\\03" ;; GlobalImport
1677 "\\7f" ;; i32
1678 "\\00" ;; immutable
1679 )`),
1680 `malformed UTF-8 encoding`,
1681 );
1682
1683 // ./test/core/utf8-import-module.wast:1685
1684 assert_malformed(
1685 () => instantiate(`(module binary
1686 "\\00asm" "\\01\\00\\00\\00"
1687 "\\02\\0e" ;; import section
1688 "\\01" ;; length 1
1689 "\\04\\74\\65\\73\\74" ;; "test"
1690 "\\04\\f5\\80\\80\\80" ;; "\\f5\\80\\80\\80"
1691 "\\03" ;; GlobalImport
1692 "\\7f" ;; i32
1693 "\\00" ;; immutable
1694 )`),
1695 `malformed UTF-8 encoding`,
1696 );
1697
1698 // ./test/core/utf8-import-module.wast:1700
1699 assert_malformed(
1700 () => instantiate(`(module binary
1701 "\\00asm" "\\01\\00\\00\\00"
1702 "\\02\\0e" ;; import section
1703 "\\01" ;; length 1
1704 "\\04\\74\\65\\73\\74" ;; "test"
1705 "\\04\\f7\\80\\80\\80" ;; "\\f7\\80\\80\\80"
1706 "\\03" ;; GlobalImport
1707 "\\7f" ;; i32
1708 "\\00" ;; immutable
1709 )`),
1710 `malformed UTF-8 encoding`,
1711 );
1712
1713 // ./test/core/utf8-import-module.wast:1715
1714 assert_malformed(
1715 () => instantiate(`(module binary
1716 "\\00asm" "\\01\\00\\00\\00"
1717 "\\02\\0e" ;; import section
1718 "\\01" ;; length 1
1719 "\\04\\74\\65\\73\\74" ;; "test"
1720 "\\04\\f7\\bf\\bf\\bf" ;; "\\f7\\bf\\bf\\bf"
1721 "\\03" ;; GlobalImport
1722 "\\7f" ;; i32
1723 "\\00" ;; immutable
1724 )`),
1725 `malformed UTF-8 encoding`,
1726 );
1727
1728 // ./test/core/utf8-import-module.wast:1732
1729 assert_malformed(
1730 () => instantiate(`(module binary
1731 "\\00asm" "\\01\\00\\00\\00"
1732 "\\02\\0e" ;; import section
1733 "\\01" ;; length 1
1734 "\\04\\74\\65\\73\\74" ;; "test"
1735 "\\04\\f0\\90\\00\\90" ;; "\\f0\\90\\00\\90"
1736 "\\03" ;; GlobalImport
1737 "\\7f" ;; i32
1738 "\\00" ;; immutable
1739 )`),
1740 `malformed UTF-8 encoding`,
1741 );
1742
1743 // ./test/core/utf8-import-module.wast:1747
1744 assert_malformed(
1745 () => instantiate(`(module binary
1746 "\\00asm" "\\01\\00\\00\\00"
1747 "\\02\\0e" ;; import section
1748 "\\01" ;; length 1
1749 "\\04\\74\\65\\73\\74" ;; "test"
1750 "\\04\\f0\\90\\7f\\90" ;; "\\f0\\90\\7f\\90"
1751 "\\03" ;; GlobalImport
1752 "\\7f" ;; i32
1753 "\\00" ;; immutable
1754 )`),
1755 `malformed UTF-8 encoding`,
1756 );
1757
1758 // ./test/core/utf8-import-module.wast:1762
1759 assert_malformed(
1760 () => instantiate(`(module binary
1761 "\\00asm" "\\01\\00\\00\\00"
1762 "\\02\\0e" ;; import section
1763 "\\01" ;; length 1
1764 "\\04\\74\\65\\73\\74" ;; "test"
1765 "\\04\\f0\\90\\c0\\90" ;; "\\f0\\90\\c0\\90"
1766 "\\03" ;; GlobalImport
1767 "\\7f" ;; i32
1768 "\\00" ;; immutable
1769 )`),
1770 `malformed UTF-8 encoding`,
1771 );
1772
1773 // ./test/core/utf8-import-module.wast:1777
1774 assert_malformed(
1775 () => instantiate(`(module binary
1776 "\\00asm" "\\01\\00\\00\\00"
1777 "\\02\\0e" ;; import section
1778 "\\01" ;; length 1
1779 "\\04\\74\\65\\73\\74" ;; "test"
1780 "\\04\\f0\\90\\fd\\90" ;; "\\f0\\90\\fd\\90"
1781 "\\03" ;; GlobalImport
1782 "\\7f" ;; i32
1783 "\\00" ;; immutable
1784 )`),
1785 `malformed UTF-8 encoding`,
1786 );
1787
1788 // ./test/core/utf8-import-module.wast:1792
1789 assert_malformed(
1790 () => instantiate(`(module binary
1791 "\\00asm" "\\01\\00\\00\\00"
1792 "\\02\\0e" ;; import section
1793 "\\01" ;; length 1
1794 "\\04\\74\\65\\73\\74" ;; "test"
1795 "\\04\\f1\\80\\00\\80" ;; "\\f1\\80\\00\\80"
1796 "\\03" ;; GlobalImport
1797 "\\7f" ;; i32
1798 "\\00" ;; immutable
1799 )`),
1800 `malformed UTF-8 encoding`,
1801 );
1802
1803 // ./test/core/utf8-import-module.wast:1807
1804 assert_malformed(
1805 () => instantiate(`(module binary
1806 "\\00asm" "\\01\\00\\00\\00"
1807 "\\02\\0e" ;; import section
1808 "\\01" ;; length 1
1809 "\\04\\74\\65\\73\\74" ;; "test"
1810 "\\04\\f1\\80\\7f\\80" ;; "\\f1\\80\\7f\\80"
1811 "\\03" ;; GlobalImport
1812 "\\7f" ;; i32
1813 "\\00" ;; immutable
1814 )`),
1815 `malformed UTF-8 encoding`,
1816 );
1817
1818 // ./test/core/utf8-import-module.wast:1822
1819 assert_malformed(
1820 () => instantiate(`(module binary
1821 "\\00asm" "\\01\\00\\00\\00"
1822 "\\02\\0e" ;; import section
1823 "\\01" ;; length 1
1824 "\\04\\74\\65\\73\\74" ;; "test"
1825 "\\04\\f1\\80\\c0\\80" ;; "\\f1\\80\\c0\\80"
1826 "\\03" ;; GlobalImport
1827 "\\7f" ;; i32
1828 "\\00" ;; immutable
1829 )`),
1830 `malformed UTF-8 encoding`,
1831 );
1832
1833 // ./test/core/utf8-import-module.wast:1837
1834 assert_malformed(
1835 () => instantiate(`(module binary
1836 "\\00asm" "\\01\\00\\00\\00"
1837 "\\02\\0e" ;; import section
1838 "\\01" ;; length 1
1839 "\\04\\74\\65\\73\\74" ;; "test"
1840 "\\04\\f1\\80\\fd\\80" ;; "\\f1\\80\\fd\\80"
1841 "\\03" ;; GlobalImport
1842 "\\7f" ;; i32
1843 "\\00" ;; immutable
1844 )`),
1845 `malformed UTF-8 encoding`,
1846 );
1847
1848 // ./test/core/utf8-import-module.wast:1852
1849 assert_malformed(
1850 () => instantiate(`(module binary
1851 "\\00asm" "\\01\\00\\00\\00"
1852 "\\02\\0e" ;; import section
1853 "\\01" ;; length 1
1854 "\\04\\74\\65\\73\\74" ;; "test"
1855 "\\04\\f3\\80\\00\\80" ;; "\\f3\\80\\00\\80"
1856 "\\03" ;; GlobalImport
1857 "\\7f" ;; i32
1858 "\\00" ;; immutable
1859 )`),
1860 `malformed UTF-8 encoding`,
1861 );
1862
1863 // ./test/core/utf8-import-module.wast:1867
1864 assert_malformed(
1865 () => instantiate(`(module binary
1866 "\\00asm" "\\01\\00\\00\\00"
1867 "\\02\\0e" ;; import section
1868 "\\01" ;; length 1
1869 "\\04\\74\\65\\73\\74" ;; "test"
1870 "\\04\\f3\\80\\7f\\80" ;; "\\f3\\80\\7f\\80"
1871 "\\03" ;; GlobalImport
1872 "\\7f" ;; i32
1873 "\\00" ;; immutable
1874 )`),
1875 `malformed UTF-8 encoding`,
1876 );
1877
1878 // ./test/core/utf8-import-module.wast:1882
1879 assert_malformed(
1880 () => instantiate(`(module binary
1881 "\\00asm" "\\01\\00\\00\\00"
1882 "\\02\\0e" ;; import section
1883 "\\01" ;; length 1
1884 "\\04\\74\\65\\73\\74" ;; "test"
1885 "\\04\\f3\\80\\c0\\80" ;; "\\f3\\80\\c0\\80"
1886 "\\03" ;; GlobalImport
1887 "\\7f" ;; i32
1888 "\\00" ;; immutable
1889 )`),
1890 `malformed UTF-8 encoding`,
1891 );
1892
1893 // ./test/core/utf8-import-module.wast:1897
1894 assert_malformed(
1895 () => instantiate(`(module binary
1896 "\\00asm" "\\01\\00\\00\\00"
1897 "\\02\\0e" ;; import section
1898 "\\01" ;; length 1
1899 "\\04\\74\\65\\73\\74" ;; "test"
1900 "\\04\\f3\\80\\fd\\80" ;; "\\f3\\80\\fd\\80"
1901 "\\03" ;; GlobalImport
1902 "\\7f" ;; i32
1903 "\\00" ;; immutable
1904 )`),
1905 `malformed UTF-8 encoding`,
1906 );
1907
1908 // ./test/core/utf8-import-module.wast:1912
1909 assert_malformed(
1910 () => instantiate(`(module binary
1911 "\\00asm" "\\01\\00\\00\\00"
1912 "\\02\\0e" ;; import section
1913 "\\01" ;; length 1
1914 "\\04\\74\\65\\73\\74" ;; "test"
1915 "\\04\\f4\\80\\00\\80" ;; "\\f4\\80\\00\\80"
1916 "\\03" ;; GlobalImport
1917 "\\7f" ;; i32
1918 "\\00" ;; immutable
1919 )`),
1920 `malformed UTF-8 encoding`,
1921 );
1922
1923 // ./test/core/utf8-import-module.wast:1927
1924 assert_malformed(
1925 () => instantiate(`(module binary
1926 "\\00asm" "\\01\\00\\00\\00"
1927 "\\02\\0e" ;; import section
1928 "\\01" ;; length 1
1929 "\\04\\74\\65\\73\\74" ;; "test"
1930 "\\04\\f4\\80\\7f\\80" ;; "\\f4\\80\\7f\\80"
1931 "\\03" ;; GlobalImport
1932 "\\7f" ;; i32
1933 "\\00" ;; immutable
1934 )`),
1935 `malformed UTF-8 encoding`,
1936 );
1937
1938 // ./test/core/utf8-import-module.wast:1942
1939 assert_malformed(
1940 () => instantiate(`(module binary
1941 "\\00asm" "\\01\\00\\00\\00"
1942 "\\02\\0e" ;; import section
1943 "\\01" ;; length 1
1944 "\\04\\74\\65\\73\\74" ;; "test"
1945 "\\04\\f4\\80\\c0\\80" ;; "\\f4\\80\\c0\\80"
1946 "\\03" ;; GlobalImport
1947 "\\7f" ;; i32
1948 "\\00" ;; immutable
1949 )`),
1950 `malformed UTF-8 encoding`,
1951 );
1952
1953 // ./test/core/utf8-import-module.wast:1957
1954 assert_malformed(
1955 () => instantiate(`(module binary
1956 "\\00asm" "\\01\\00\\00\\00"
1957 "\\02\\0e" ;; import section
1958 "\\01" ;; length 1
1959 "\\04\\74\\65\\73\\74" ;; "test"
1960 "\\04\\f4\\80\\fd\\80" ;; "\\f4\\80\\fd\\80"
1961 "\\03" ;; GlobalImport
1962 "\\7f" ;; i32
1963 "\\00" ;; immutable
1964 )`),
1965 `malformed UTF-8 encoding`,
1966 );
1967
1968 // ./test/core/utf8-import-module.wast:1974
1969 assert_malformed(
1970 () => instantiate(`(module binary
1971 "\\00asm" "\\01\\00\\00\\00"
1972 "\\02\\0e" ;; import section
1973 "\\01" ;; length 1
1974 "\\04\\74\\65\\73\\74" ;; "test"
1975 "\\04\\f0\\90\\90\\00" ;; "\\f0\\90\\90\\00"
1976 "\\03" ;; GlobalImport
1977 "\\7f" ;; i32
1978 "\\00" ;; immutable
1979 )`),
1980 `malformed UTF-8 encoding`,
1981 );
1982
1983 // ./test/core/utf8-import-module.wast:1989
1984 assert_malformed(
1985 () => instantiate(`(module binary
1986 "\\00asm" "\\01\\00\\00\\00"
1987 "\\02\\0e" ;; import section
1988 "\\01" ;; length 1
1989 "\\04\\74\\65\\73\\74" ;; "test"
1990 "\\04\\f0\\90\\90\\7f" ;; "\\f0\\90\\90\\7f"
1991 "\\03" ;; GlobalImport
1992 "\\7f" ;; i32
1993 "\\00" ;; immutable
1994 )`),
1995 `malformed UTF-8 encoding`,
1996 );
1997
1998 // ./test/core/utf8-import-module.wast:2004
1999 assert_malformed(
2000 () => instantiate(`(module binary
2001 "\\00asm" "\\01\\00\\00\\00"
2002 "\\02\\0e" ;; import section
2003 "\\01" ;; length 1
2004 "\\04\\74\\65\\73\\74" ;; "test"
2005 "\\04\\f0\\90\\90\\c0" ;; "\\f0\\90\\90\\c0"
2006 "\\03" ;; GlobalImport
2007 "\\7f" ;; i32
2008 "\\00" ;; immutable
2009 )`),
2010 `malformed UTF-8 encoding`,
2011 );
2012
2013 // ./test/core/utf8-import-module.wast:2019
2014 assert_malformed(
2015 () => instantiate(`(module binary
2016 "\\00asm" "\\01\\00\\00\\00"
2017 "\\02\\0e" ;; import section
2018 "\\01" ;; length 1
2019 "\\04\\74\\65\\73\\74" ;; "test"
2020 "\\04\\f0\\90\\90\\fd" ;; "\\f0\\90\\90\\fd"
2021 "\\03" ;; GlobalImport
2022 "\\7f" ;; i32
2023 "\\00" ;; immutable
2024 )`),
2025 `malformed UTF-8 encoding`,
2026 );
2027
2028 // ./test/core/utf8-import-module.wast:2034
2029 assert_malformed(
2030 () => instantiate(`(module binary
2031 "\\00asm" "\\01\\00\\00\\00"
2032 "\\02\\0e" ;; import section
2033 "\\01" ;; length 1
2034 "\\04\\74\\65\\73\\74" ;; "test"
2035 "\\04\\f1\\80\\80\\00" ;; "\\f1\\80\\80\\00"
2036 "\\03" ;; GlobalImport
2037 "\\7f" ;; i32
2038 "\\00" ;; immutable
2039 )`),
2040 `malformed UTF-8 encoding`,
2041 );
2042
2043 // ./test/core/utf8-import-module.wast:2049
2044 assert_malformed(
2045 () => instantiate(`(module binary
2046 "\\00asm" "\\01\\00\\00\\00"
2047 "\\02\\0e" ;; import section
2048 "\\01" ;; length 1
2049 "\\04\\74\\65\\73\\74" ;; "test"
2050 "\\04\\f1\\80\\80\\7f" ;; "\\f1\\80\\80\\7f"
2051 "\\03" ;; GlobalImport
2052 "\\7f" ;; i32
2053 "\\00" ;; immutable
2054 )`),
2055 `malformed UTF-8 encoding`,
2056 );
2057
2058 // ./test/core/utf8-import-module.wast:2064
2059 assert_malformed(
2060 () => instantiate(`(module binary
2061 "\\00asm" "\\01\\00\\00\\00"
2062 "\\02\\0e" ;; import section
2063 "\\01" ;; length 1
2064 "\\04\\74\\65\\73\\74" ;; "test"
2065 "\\04\\f1\\80\\80\\c0" ;; "\\f1\\80\\80\\c0"
2066 "\\03" ;; GlobalImport
2067 "\\7f" ;; i32
2068 "\\00" ;; immutable
2069 )`),
2070 `malformed UTF-8 encoding`,
2071 );
2072
2073 // ./test/core/utf8-import-module.wast:2079
2074 assert_malformed(
2075 () => instantiate(`(module binary
2076 "\\00asm" "\\01\\00\\00\\00"
2077 "\\02\\0e" ;; import section
2078 "\\01" ;; length 1
2079 "\\04\\74\\65\\73\\74" ;; "test"
2080 "\\04\\f1\\80\\80\\fd" ;; "\\f1\\80\\80\\fd"
2081 "\\03" ;; GlobalImport
2082 "\\7f" ;; i32
2083 "\\00" ;; immutable
2084 )`),
2085 `malformed UTF-8 encoding`,
2086 );
2087
2088 // ./test/core/utf8-import-module.wast:2094
2089 assert_malformed(
2090 () => instantiate(`(module binary
2091 "\\00asm" "\\01\\00\\00\\00"
2092 "\\02\\0e" ;; import section
2093 "\\01" ;; length 1
2094 "\\04\\74\\65\\73\\74" ;; "test"
2095 "\\04\\f3\\80\\80\\00" ;; "\\f3\\80\\80\\00"
2096 "\\03" ;; GlobalImport
2097 "\\7f" ;; i32
2098 "\\00" ;; immutable
2099 )`),
2100 `malformed UTF-8 encoding`,
2101 );
2102
2103 // ./test/core/utf8-import-module.wast:2109
2104 assert_malformed(
2105 () => instantiate(`(module binary
2106 "\\00asm" "\\01\\00\\00\\00"
2107 "\\02\\0e" ;; import section
2108 "\\01" ;; length 1
2109 "\\04\\74\\65\\73\\74" ;; "test"
2110 "\\04\\f3\\80\\80\\7f" ;; "\\f3\\80\\80\\7f"
2111 "\\03" ;; GlobalImport
2112 "\\7f" ;; i32
2113 "\\00" ;; immutable
2114 )`),
2115 `malformed UTF-8 encoding`,
2116 );
2117
2118 // ./test/core/utf8-import-module.wast:2124
2119 assert_malformed(
2120 () => instantiate(`(module binary
2121 "\\00asm" "\\01\\00\\00\\00"
2122 "\\02\\0e" ;; import section
2123 "\\01" ;; length 1
2124 "\\04\\74\\65\\73\\74" ;; "test"
2125 "\\04\\f3\\80\\80\\c0" ;; "\\f3\\80\\80\\c0"
2126 "\\03" ;; GlobalImport
2127 "\\7f" ;; i32
2128 "\\00" ;; immutable
2129 )`),
2130 `malformed UTF-8 encoding`,
2131 );
2132
2133 // ./test/core/utf8-import-module.wast:2139
2134 assert_malformed(
2135 () => instantiate(`(module binary
2136 "\\00asm" "\\01\\00\\00\\00"
2137 "\\02\\0e" ;; import section
2138 "\\01" ;; length 1
2139 "\\04\\74\\65\\73\\74" ;; "test"
2140 "\\04\\f3\\80\\80\\fd" ;; "\\f3\\80\\80\\fd"
2141 "\\03" ;; GlobalImport
2142 "\\7f" ;; i32
2143 "\\00" ;; immutable
2144 )`),
2145 `malformed UTF-8 encoding`,
2146 );
2147
2148 // ./test/core/utf8-import-module.wast:2154
2149 assert_malformed(
2150 () => instantiate(`(module binary
2151 "\\00asm" "\\01\\00\\00\\00"
2152 "\\02\\0e" ;; import section
2153 "\\01" ;; length 1
2154 "\\04\\74\\65\\73\\74" ;; "test"
2155 "\\04\\f4\\80\\80\\00" ;; "\\f4\\80\\80\\00"
2156 "\\03" ;; GlobalImport
2157 "\\7f" ;; i32
2158 "\\00" ;; immutable
2159 )`),
2160 `malformed UTF-8 encoding`,
2161 );
2162
2163 // ./test/core/utf8-import-module.wast:2169
2164 assert_malformed(
2165 () => instantiate(`(module binary
2166 "\\00asm" "\\01\\00\\00\\00"
2167 "\\02\\0e" ;; import section
2168 "\\01" ;; length 1
2169 "\\04\\74\\65\\73\\74" ;; "test"
2170 "\\04\\f4\\80\\80\\7f" ;; "\\f4\\80\\80\\7f"
2171 "\\03" ;; GlobalImport
2172 "\\7f" ;; i32
2173 "\\00" ;; immutable
2174 )`),
2175 `malformed UTF-8 encoding`,
2176 );
2177
2178 // ./test/core/utf8-import-module.wast:2184
2179 assert_malformed(
2180 () => instantiate(`(module binary
2181 "\\00asm" "\\01\\00\\00\\00"
2182 "\\02\\0e" ;; import section
2183 "\\01" ;; length 1
2184 "\\04\\74\\65\\73\\74" ;; "test"
2185 "\\04\\f4\\80\\80\\c0" ;; "\\f4\\80\\80\\c0"
2186 "\\03" ;; GlobalImport
2187 "\\7f" ;; i32
2188 "\\00" ;; immutable
2189 )`),
2190 `malformed UTF-8 encoding`,
2191 );
2192
2193 // ./test/core/utf8-import-module.wast:2199
2194 assert_malformed(
2195 () => instantiate(`(module binary
2196 "\\00asm" "\\01\\00\\00\\00"
2197 "\\02\\0e" ;; import section
2198 "\\01" ;; length 1
2199 "\\04\\74\\65\\73\\74" ;; "test"
2200 "\\04\\f4\\80\\80\\fd" ;; "\\f4\\80\\80\\fd"
2201 "\\03" ;; GlobalImport
2202 "\\7f" ;; i32
2203 "\\00" ;; immutable
2204 )`),
2205 `malformed UTF-8 encoding`,
2206 );
2207
2208 // ./test/core/utf8-import-module.wast:2216
2209 assert_malformed(
2210 () => instantiate(`(module binary
2211 "\\00asm" "\\01\\00\\00\\00"
2212 "\\02\\10" ;; import section
2213 "\\01" ;; length 1
2214 "\\04\\74\\65\\73\\74" ;; "test"
2215 "\\06\\f8\\80\\80\\80\\80\\80" ;; "\\f8\\80\\80\\80\\80\\80"
2216 "\\03" ;; GlobalImport
2217 "\\7f" ;; i32
2218 "\\00" ;; immutable
2219 )`),
2220 `malformed UTF-8 encoding`,
2221 );
2222
2223 // ./test/core/utf8-import-module.wast:2231
2224 assert_malformed(
2225 () => instantiate(`(module binary
2226 "\\00asm" "\\01\\00\\00\\00"
2227 "\\02\\0e" ;; import section
2228 "\\01" ;; length 1
2229 "\\04\\74\\65\\73\\74" ;; "test"
2230 "\\04\\f8\\80\\80\\80" ;; "\\f8\\80\\80\\80"
2231 "\\03" ;; GlobalImport
2232 "\\7f" ;; i32
2233 "\\00" ;; immutable
2234 )`),
2235 `malformed UTF-8 encoding`,
2236 );
2237
2238 // ./test/core/utf8-import-module.wast:2246
2239 assert_malformed(
2240 () => instantiate(`(module binary
2241 "\\00asm" "\\01\\00\\00\\00"
2242 "\\02\\0f" ;; import section
2243 "\\01" ;; length 1
2244 "\\04\\74\\65\\73\\74" ;; "test"
2245 "\\05\\f8\\80\\80\\80\\23" ;; "\\f8\\80\\80\\80#"
2246 "\\03" ;; GlobalImport
2247 "\\7f" ;; i32
2248 "\\00" ;; immutable
2249 )`),
2250 `malformed UTF-8 encoding`,
2251 );
2252
2253 // ./test/core/utf8-import-module.wast:2261
2254 assert_malformed(
2255 () => instantiate(`(module binary
2256 "\\00asm" "\\01\\00\\00\\00"
2257 "\\02\\0d" ;; import section
2258 "\\01" ;; length 1
2259 "\\04\\74\\65\\73\\74" ;; "test"
2260 "\\03\\f8\\80\\80" ;; "\\f8\\80\\80"
2261 "\\03" ;; GlobalImport
2262 "\\7f" ;; i32
2263 "\\00" ;; immutable
2264 )`),
2265 `malformed UTF-8 encoding`,
2266 );
2267
2268 // ./test/core/utf8-import-module.wast:2276
2269 assert_malformed(
2270 () => instantiate(`(module binary
2271 "\\00asm" "\\01\\00\\00\\00"
2272 "\\02\\0e" ;; import section
2273 "\\01" ;; length 1
2274 "\\04\\74\\65\\73\\74" ;; "test"
2275 "\\04\\f8\\80\\80\\23" ;; "\\f8\\80\\80#"
2276 "\\03" ;; GlobalImport
2277 "\\7f" ;; i32
2278 "\\00" ;; immutable
2279 )`),
2280 `malformed UTF-8 encoding`,
2281 );
2282
2283 // ./test/core/utf8-import-module.wast:2291
2284 assert_malformed(
2285 () => instantiate(`(module binary
2286 "\\00asm" "\\01\\00\\00\\00"
2287 "\\02\\0c" ;; import section
2288 "\\01" ;; length 1
2289 "\\04\\74\\65\\73\\74" ;; "test"
2290 "\\02\\f8\\80" ;; "\\f8\\80"
2291 "\\03" ;; GlobalImport
2292 "\\7f" ;; i32
2293 "\\00" ;; immutable
2294 )`),
2295 `malformed UTF-8 encoding`,
2296 );
2297
2298 // ./test/core/utf8-import-module.wast:2306
2299 assert_malformed(
2300 () => instantiate(`(module binary
2301 "\\00asm" "\\01\\00\\00\\00"
2302 "\\02\\0d" ;; import section
2303 "\\01" ;; length 1
2304 "\\04\\74\\65\\73\\74" ;; "test"
2305 "\\03\\f8\\80\\23" ;; "\\f8\\80#"
2306 "\\03" ;; GlobalImport
2307 "\\7f" ;; i32
2308 "\\00" ;; immutable
2309 )`),
2310 `malformed UTF-8 encoding`,
2311 );
2312
2313 // ./test/core/utf8-import-module.wast:2321
2314 assert_malformed(
2315 () => instantiate(`(module binary
2316 "\\00asm" "\\01\\00\\00\\00"
2317 "\\02\\0b" ;; import section
2318 "\\01" ;; length 1
2319 "\\04\\74\\65\\73\\74" ;; "test"
2320 "\\01\\f8" ;; "\\f8"
2321 "\\03" ;; GlobalImport
2322 "\\7f" ;; i32
2323 "\\00" ;; immutable
2324 )`),
2325 `malformed UTF-8 encoding`,
2326 );
2327
2328 // ./test/core/utf8-import-module.wast:2336
2329 assert_malformed(
2330 () => instantiate(`(module binary
2331 "\\00asm" "\\01\\00\\00\\00"
2332 "\\02\\0c" ;; import section
2333 "\\01" ;; length 1
2334 "\\04\\74\\65\\73\\74" ;; "test"
2335 "\\02\\f8\\23" ;; "\\f8#"
2336 "\\03" ;; GlobalImport
2337 "\\7f" ;; i32
2338 "\\00" ;; immutable
2339 )`),
2340 `malformed UTF-8 encoding`,
2341 );
2342
2343 // ./test/core/utf8-import-module.wast:2353
2344 assert_malformed(
2345 () => instantiate(`(module binary
2346 "\\00asm" "\\01\\00\\00\\00"
2347 "\\02\\0f" ;; import section
2348 "\\01" ;; length 1
2349 "\\04\\74\\65\\73\\74" ;; "test"
2350 "\\05\\f8\\80\\80\\80\\80" ;; "\\f8\\80\\80\\80\\80"
2351 "\\03" ;; GlobalImport
2352 "\\7f" ;; i32
2353 "\\00" ;; immutable
2354 )`),
2355 `malformed UTF-8 encoding`,
2356 );
2357
2358 // ./test/core/utf8-import-module.wast:2368
2359 assert_malformed(
2360 () => instantiate(`(module binary
2361 "\\00asm" "\\01\\00\\00\\00"
2362 "\\02\\0f" ;; import section
2363 "\\01" ;; length 1
2364 "\\04\\74\\65\\73\\74" ;; "test"
2365 "\\05\\fb\\bf\\bf\\bf\\bf" ;; "\\fb\\bf\\bf\\bf\\bf"
2366 "\\03" ;; GlobalImport
2367 "\\7f" ;; i32
2368 "\\00" ;; immutable
2369 )`),
2370 `malformed UTF-8 encoding`,
2371 );
2372
2373 // ./test/core/utf8-import-module.wast:2385
2374 assert_malformed(
2375 () => instantiate(`(module binary
2376 "\\00asm" "\\01\\00\\00\\00"
2377 "\\02\\11" ;; import section
2378 "\\01" ;; length 1
2379 "\\04\\74\\65\\73\\74" ;; "test"
2380 "\\07\\fc\\80\\80\\80\\80\\80\\80" ;; "\\fc\\80\\80\\80\\80\\80\\80"
2381 "\\03" ;; GlobalImport
2382 "\\7f" ;; i32
2383 "\\00" ;; immutable
2384 )`),
2385 `malformed UTF-8 encoding`,
2386 );
2387
2388 // ./test/core/utf8-import-module.wast:2400
2389 assert_malformed(
2390 () => instantiate(`(module binary
2391 "\\00asm" "\\01\\00\\00\\00"
2392 "\\02\\0f" ;; import section
2393 "\\01" ;; length 1
2394 "\\04\\74\\65\\73\\74" ;; "test"
2395 "\\05\\fc\\80\\80\\80\\80" ;; "\\fc\\80\\80\\80\\80"
2396 "\\03" ;; GlobalImport
2397 "\\7f" ;; i32
2398 "\\00" ;; immutable
2399 )`),
2400 `malformed UTF-8 encoding`,
2401 );
2402
2403 // ./test/core/utf8-import-module.wast:2415
2404 assert_malformed(
2405 () => instantiate(`(module binary
2406 "\\00asm" "\\01\\00\\00\\00"
2407 "\\02\\10" ;; import section
2408 "\\01" ;; length 1
2409 "\\04\\74\\65\\73\\74" ;; "test"
2410 "\\06\\fc\\80\\80\\80\\80\\23" ;; "\\fc\\80\\80\\80\\80#"
2411 "\\03" ;; GlobalImport
2412 "\\7f" ;; i32
2413 "\\00" ;; immutable
2414 )`),
2415 `malformed UTF-8 encoding`,
2416 );
2417
2418 // ./test/core/utf8-import-module.wast:2430
2419 assert_malformed(
2420 () => instantiate(`(module binary
2421 "\\00asm" "\\01\\00\\00\\00"
2422 "\\02\\0e" ;; import section
2423 "\\01" ;; length 1
2424 "\\04\\74\\65\\73\\74" ;; "test"
2425 "\\04\\fc\\80\\80\\80" ;; "\\fc\\80\\80\\80"
2426 "\\03" ;; GlobalImport
2427 "\\7f" ;; i32
2428 "\\00" ;; immutable
2429 )`),
2430 `malformed UTF-8 encoding`,
2431 );
2432
2433 // ./test/core/utf8-import-module.wast:2445
2434 assert_malformed(
2435 () => instantiate(`(module binary
2436 "\\00asm" "\\01\\00\\00\\00"
2437 "\\02\\0f" ;; import section
2438 "\\01" ;; length 1
2439 "\\04\\74\\65\\73\\74" ;; "test"
2440 "\\05\\fc\\80\\80\\80\\23" ;; "\\fc\\80\\80\\80#"
2441 "\\03" ;; GlobalImport
2442 "\\7f" ;; i32
2443 "\\00" ;; immutable
2444 )`),
2445 `malformed UTF-8 encoding`,
2446 );
2447
2448 // ./test/core/utf8-import-module.wast:2460
2449 assert_malformed(
2450 () => instantiate(`(module binary
2451 "\\00asm" "\\01\\00\\00\\00"
2452 "\\02\\0d" ;; import section
2453 "\\01" ;; length 1
2454 "\\04\\74\\65\\73\\74" ;; "test"
2455 "\\03\\fc\\80\\80" ;; "\\fc\\80\\80"
2456 "\\03" ;; GlobalImport
2457 "\\7f" ;; i32
2458 "\\00" ;; immutable
2459 )`),
2460 `malformed UTF-8 encoding`,
2461 );
2462
2463 // ./test/core/utf8-import-module.wast:2475
2464 assert_malformed(
2465 () => instantiate(`(module binary
2466 "\\00asm" "\\01\\00\\00\\00"
2467 "\\02\\0e" ;; import section
2468 "\\01" ;; length 1
2469 "\\04\\74\\65\\73\\74" ;; "test"
2470 "\\04\\fc\\80\\80\\23" ;; "\\fc\\80\\80#"
2471 "\\03" ;; GlobalImport
2472 "\\7f" ;; i32
2473 "\\00" ;; immutable
2474 )`),
2475 `malformed UTF-8 encoding`,
2476 );
2477
2478 // ./test/core/utf8-import-module.wast:2490
2479 assert_malformed(
2480 () => instantiate(`(module binary
2481 "\\00asm" "\\01\\00\\00\\00"
2482 "\\02\\0c" ;; import section
2483 "\\01" ;; length 1
2484 "\\04\\74\\65\\73\\74" ;; "test"
2485 "\\02\\fc\\80" ;; "\\fc\\80"
2486 "\\03" ;; GlobalImport
2487 "\\7f" ;; i32
2488 "\\00" ;; immutable
2489 )`),
2490 `malformed UTF-8 encoding`,
2491 );
2492
2493 // ./test/core/utf8-import-module.wast:2505
2494 assert_malformed(
2495 () => instantiate(`(module binary
2496 "\\00asm" "\\01\\00\\00\\00"
2497 "\\02\\0d" ;; import section
2498 "\\01" ;; length 1
2499 "\\04\\74\\65\\73\\74" ;; "test"
2500 "\\03\\fc\\80\\23" ;; "\\fc\\80#"
2501 "\\03" ;; GlobalImport
2502 "\\7f" ;; i32
2503 "\\00" ;; immutable
2504 )`),
2505 `malformed UTF-8 encoding`,
2506 );
2507
2508 // ./test/core/utf8-import-module.wast:2520
2509 assert_malformed(
2510 () => instantiate(`(module binary
2511 "\\00asm" "\\01\\00\\00\\00"
2512 "\\02\\0b" ;; import section
2513 "\\01" ;; length 1
2514 "\\04\\74\\65\\73\\74" ;; "test"
2515 "\\01\\fc" ;; "\\fc"
2516 "\\03" ;; GlobalImport
2517 "\\7f" ;; i32
2518 "\\00" ;; immutable
2519 )`),
2520 `malformed UTF-8 encoding`,
2521 );
2522
2523 // ./test/core/utf8-import-module.wast:2535
2524 assert_malformed(
2525 () => instantiate(`(module binary
2526 "\\00asm" "\\01\\00\\00\\00"
2527 "\\02\\0c" ;; import section
2528 "\\01" ;; length 1
2529 "\\04\\74\\65\\73\\74" ;; "test"
2530 "\\02\\fc\\23" ;; "\\fc#"
2531 "\\03" ;; GlobalImport
2532 "\\7f" ;; i32
2533 "\\00" ;; immutable
2534 )`),
2535 `malformed UTF-8 encoding`,
2536 );
2537
2538 // ./test/core/utf8-import-module.wast:2552
2539 assert_malformed(
2540 () => instantiate(`(module binary
2541 "\\00asm" "\\01\\00\\00\\00"
2542 "\\02\\10" ;; import section
2543 "\\01" ;; length 1
2544 "\\04\\74\\65\\73\\74" ;; "test"
2545 "\\06\\fc\\80\\80\\80\\80\\80" ;; "\\fc\\80\\80\\80\\80\\80"
2546 "\\03" ;; GlobalImport
2547 "\\7f" ;; i32
2548 "\\00" ;; immutable
2549 )`),
2550 `malformed UTF-8 encoding`,
2551 );
2552
2553 // ./test/core/utf8-import-module.wast:2567
2554 assert_malformed(
2555 () => instantiate(`(module binary
2556 "\\00asm" "\\01\\00\\00\\00"
2557 "\\02\\10" ;; import section
2558 "\\01" ;; length 1
2559 "\\04\\74\\65\\73\\74" ;; "test"
2560 "\\06\\fd\\bf\\bf\\bf\\bf\\bf" ;; "\\fd\\bf\\bf\\bf\\bf\\bf"
2561 "\\03" ;; GlobalImport
2562 "\\7f" ;; i32
2563 "\\00" ;; immutable
2564 )`),
2565 `malformed UTF-8 encoding`,
2566 );
2567
2568 // ./test/core/utf8-import-module.wast:2584
2569 assert_malformed(
2570 () => instantiate(`(module binary
2571 "\\00asm" "\\01\\00\\00\\00"
2572 "\\02\\0b" ;; import section
2573 "\\01" ;; length 1
2574 "\\04\\74\\65\\73\\74" ;; "test"
2575 "\\01\\fe" ;; "\\fe"
2576 "\\03" ;; GlobalImport
2577 "\\7f" ;; i32
2578 "\\00" ;; immutable
2579 )`),
2580 `malformed UTF-8 encoding`,
2581 );
2582
2583 // ./test/core/utf8-import-module.wast:2599
2584 assert_malformed(
2585 () => instantiate(`(module binary
2586 "\\00asm" "\\01\\00\\00\\00"
2587 "\\02\\0b" ;; import section
2588 "\\01" ;; length 1
2589 "\\04\\74\\65\\73\\74" ;; "test"
2590 "\\01\\ff" ;; "\\ff"
2591 "\\03" ;; GlobalImport
2592 "\\7f" ;; i32
2593 "\\00" ;; immutable
2594 )`),
2595 `malformed UTF-8 encoding`,
2596 );
2597
2598 // ./test/core/utf8-import-module.wast:2614
2599 assert_malformed(
2600 () => instantiate(`(module binary
2601 "\\00asm" "\\01\\00\\00\\00"
2602 "\\02\\0c" ;; import section
2603 "\\01" ;; length 1
2604 "\\04\\74\\65\\73\\74" ;; "test"
2605 "\\02\\fe\\ff" ;; "\\fe\\ff"
2606 "\\03" ;; GlobalImport
2607 "\\7f" ;; i32
2608 "\\00" ;; immutable
2609 )`),
2610 `malformed UTF-8 encoding`,
2611 );
2612
2613 // ./test/core/utf8-import-module.wast:2629
2614 assert_malformed(
2615 () => instantiate(`(module binary
2616 "\\00asm" "\\01\\00\\00\\00"
2617 "\\02\\0e" ;; import section
2618 "\\01" ;; length 1
2619 "\\04\\74\\65\\73\\74" ;; "test"
2620 "\\04\\00\\00\\fe\\ff" ;; "\\00\\00\\fe\\ff"
2621 "\\03" ;; GlobalImport
2622 "\\7f" ;; i32
2623 "\\00" ;; immutable
2624 )`),
2625 `malformed UTF-8 encoding`,
2626 );
2627
2628 // ./test/core/utf8-import-module.wast:2644
2629 assert_malformed(
2630 () => instantiate(`(module binary
2631 "\\00asm" "\\01\\00\\00\\00"
2632 "\\02\\0c" ;; import section
2633 "\\01" ;; length 1
2634 "\\04\\74\\65\\73\\74" ;; "test"
2635 "\\02\\ff\\fe" ;; "\\ff\\fe"
2636 "\\03" ;; GlobalImport
2637 "\\7f" ;; i32
2638 "\\00" ;; immutable
2639 )`),
2640 `malformed UTF-8 encoding`,
2641 );
2642
2643 // ./test/core/utf8-import-module.wast:2659
2644 assert_malformed(
2645 () => instantiate(`(module binary
2646 "\\00asm" "\\01\\00\\00\\00"
2647 "\\02\\0e" ;; import section
2648 "\\01" ;; length 1
2649 "\\04\\74\\65\\73\\74" ;; "test"
2650 "\\04\\ff\\fe\\00\\00" ;; "\\ff\\fe\\00\\00"
2651 "\\03" ;; GlobalImport
2652 "\\7f" ;; i32
2653 "\\00" ;; immutable
2654 )`),
2655 `malformed UTF-8 encoding`,
2656 );