From 13e0fec20134b576a0c6b409d3f6f19af900166b Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Wed, 2 Oct 2024 18:45:38 +0000 Subject: [PATCH] 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 https://github.com/WebAssembly/binaryen/pull/6795 --- tools/wasm-sourcemap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/wasm-sourcemap.py b/tools/wasm-sourcemap.py index eadac94d3dc34..15a8707231e6b 100755 --- a/tools/wasm-sourcemap.py +++ b/tools/wasm-sourcemap.py @@ -317,9 +317,9 @@ def build_sourcemap(entries, code_section_offset, prefixes, collect_sources, bas last_line = line last_column = column return {'version': 3, - 'names': [], 'sources': sources, 'sourcesContent': sources_content, + 'names': [], 'mappings': ','.join(mappings)}