diff options
author | Marcin Kolny <mkolny@amazon.com> | 2024-08-15 16:40:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-15 08:40:49 -0700 |
commit | ad0802226a180d9797d17bb7fee391c0d62f9913 (patch) | |
tree | 1b0587bd1ff60556fc1ff092c26b46b62be8489b /test | |
parent | cde2a52fc6d679d53d1c5b72b081992d53e01c6b (diff) | |
download | binaryen-ad0802226a180d9797d17bb7fee391c0d62f9913.tar.gz binaryen-ad0802226a180d9797d17bb7fee391c0d62f9913.tar.bz2 binaryen-ad0802226a180d9797d17bb7fee391c0d62f9913.zip |
Save build ID in a source map (#6799)
This is based on these two proposals:
* https://github.com/WebAssembly/tool-conventions/blob/main/BuildId.md
* https://github.com/tc39/source-map/blob/main/proposals/debug-id.md
Diffstat (limited to 'test')
-rw-r--r-- | test/lit/binary/custom-section-build-id.test | 7 | ||||
-rw-r--r-- | test/lit/binary/custom-section-build-id.test.wasm | bin | 0 -> 29 bytes |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/lit/binary/custom-section-build-id.test b/test/lit/binary/custom-section-build-id.test new file mode 100644 index 000000000..65d886752 --- /dev/null +++ b/test/lit/binary/custom-section-build-id.test @@ -0,0 +1,7 @@ +# Verify that the build id is included in the source map. + +;; RUN: wasm-opt %s.wasm -o %t.wasm -osm %t.map +;; RUN: cat %t.map | filecheck %s + +;; CHECK: {"version":3,"debugId":"01ab23cd45ef67ab89","sources":[],"names":[],"mappings":""} + diff --git a/test/lit/binary/custom-section-build-id.test.wasm b/test/lit/binary/custom-section-build-id.test.wasm Binary files differnew file mode 100644 index 000000000..caa70f821 --- /dev/null +++ b/test/lit/binary/custom-section-build-id.test.wasm |