diff options
author | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2024-10-01 23:39:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-01 14:39:34 -0700 |
commit | 347fc8a57dcfd9361b05f271a7f2badc929500cf (patch) | |
tree | 362a40ae7bc9bcb9e8c40967505d3414691f6af6 /test/lit/metadce | |
parent | cb53f0c6966fe7c8e5cc1a975eab9653b5914bde (diff) | |
download | binaryen-347fc8a57dcfd9361b05f271a7f2badc929500cf.tar.gz binaryen-347fc8a57dcfd9361b05f271a7f2badc929500cf.tar.bz2 binaryen-347fc8a57dcfd9361b05f271a7f2badc929500cf.zip |
Source Maps: Support 5 segment mappings (#6795)
Support 5-segment source mappings, which add a name.
Reference:
https://github.com/tc39/source-map/blob/main/source-map-rev3.md#proposed-format
Diffstat (limited to 'test/lit/metadce')
-rw-r--r-- | test/lit/metadce/sourcemap.wat | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/lit/metadce/sourcemap.wat b/test/lit/metadce/sourcemap.wat index 8a73a01da..0190fe557 100644 --- a/test/lit/metadce/sourcemap.wat +++ b/test/lit/metadce/sourcemap.wat @@ -7,20 +7,20 @@ ;; Test that sourcemap information is preserved (module - ;;@ a:1:1 + ;;@ a:1:2 ;; TXT: (type $0 (func)) ;; TXT: (export "f" (func $f)) ;; TXT: (func $f - ;; TXT-NEXT: ;;@ a:2:1 + ;; TXT-NEXT: ;;@ a:7:8:someSymbol ;; TXT-NEXT: (nop) - ;; TXT-NEXT: ;;@ a:3:1 + ;; TXT-NEXT: ;;@ a:9:10 ;; TXT-NEXT: ) (func $f (export "f") - ;;@ a:2:1 + ;;@ a:7:8:someSymbol (nop) - ;;@ a:3:1 + ;;@ a:9:10 ) ) ;; BIN: (type $0 (func)) @@ -28,7 +28,7 @@ ;; BIN: (export "f" (func $0)) ;; BIN: (func $0 -;; BIN-NEXT: ;;@ a:2:1 +;; BIN-NEXT: ;;@ a:7:8:someSymbol ;; BIN-NEXT: (nop) -;; BIN-NEXT: ;;@ a:3:1 +;; BIN-NEXT: ;;@ a:9:10 ;; BIN-NEXT: ) |