Skip to content

Commit 678bbd3

Browse files
authored
Fix ordering of source maps fields. (#22670)
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 4c34a0d commit 678bbd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/wasm-sourcemap.py

+1-1
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)