Skip to content

Commit 13e0fec

Browse files
committed
Fix ordering of source maps fields.
The order is specified in https://github.com/tc39/source-map/blob/main/source-map-rev3.md#proposed-format This was causing binaryen to fail after WebAssembly/binaryen#6795
1 parent b9a0186 commit 13e0fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/wasm-sourcemap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ def build_sourcemap(entries, code_section_offset, prefixes, collect_sources, bas
317317
last_line = line
318318
last_column = column
319319
return {'version': 3,
320-
'names': [],
321320
'sources': sources,
322321
'sourcesContent': sources_content,
322+
'names': [],
323323
'mappings': ','.join(mappings)}
324324

325325

0 commit comments

Comments
 (0)