(wasm, url)
| 160 | |
| 161 | |
| 162 | def append_source_mapping(wasm, url): |
| 163 | logger.debug('Append sourceMappingURL section') |
| 164 | section_name = "sourceMappingURL" |
| 165 | section_content = encode_uint_var(len(section_name)) + section_name.encode() + encode_uint_var(len(url)) + url.encode() |
| 166 | return wasm + encode_uint_var(0) + encode_uint_var(len(section_content)) + section_content |
| 167 | |
| 168 | |
| 169 | def get_code_section_offset(wasm): |
no test coverage detected