We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88eabd8 commit 63a9648Copy full SHA for 63a9648
tools/wasm-sourcemap.py
@@ -140,7 +140,7 @@ def encode_uint_var(n):
140
def append_source_mapping(wasm, url):
141
logger.debug('Append sourceMappingURL section')
142
section_name = "sourceMappingURL"
143
- section_content = encode_uint_var(len(section_name)) + section_name + encode_uint_var(len(url)) + url
+ section_content = encode_uint_var(len(section_name)) + section_name.encode() + encode_uint_var(len(url)) + url.encode()
144
return wasm + encode_uint_var(0) + encode_uint_var(len(section_content)) + section_content
145
146
0 commit comments