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/source-map.wast | |
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/source-map.wast')
-rw-r--r-- | test/lit/source-map.wast | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/lit/source-map.wast b/test/lit/source-map.wast index f8ef07c65..b4fc55374 100644 --- a/test/lit/source-map.wast +++ b/test/lit/source-map.wast @@ -110,4 +110,21 @@ ;;@ src.cpp:3 (nop) ) + + ;; CHECK: (func $symbolNames + ;; CHECK-NEXT: ;;@ /tmp/src.cpp:1:2:MyClass.myMethod + ;; CHECK-NEXT: (nop) + ;; CHECK-NEXT: ;;@ ../src.cpp:3:4:MyClass::myMethod + ;; CHECK-NEXT: (nop) + ;; CHECK-NEXT: ;;@ café.cpp:5:6:topLevelFunction + ;; CHECK-NEXT: (nop) + ;; CHECK-NEXT: ) + (func $symbolNames + ;;@ /tmp/src.cpp:1:2:MyClass.myMethod + (nop) + ;;@ ../src.cpp:3:4:MyClass::myMethod + (nop) + ;;@ café.cpp:5:6:topLevelFunction + (nop) + ) ) |