(wasm_file)
| 654 | |
| 655 | |
| 656 | def get_weak_imports(wasm_file): |
| 657 | weak_imports = [] |
| 658 | dylink_sec = parse_dylink_section(wasm_file) |
| 659 | for symbols in dylink_sec.import_info.values(): |
| 660 | for symbol, flags in symbols.items(): |
| 661 | if flags & SYMBOL_BINDING_MASK == SYMBOL_BINDING_WEAK: |
| 662 | weak_imports.append(symbol) |
| 663 | return weak_imports |
nothing calls this directly
no test coverage detected