Skip to content

Commit

Permalink
Disallow multiple custom sections for sourceMappingURL
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jun 25, 2024
1 parent faaf960 commit f14a7f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source-map.bs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ a [=byte sequence=] |bytes|, run the following steps:
1. Return null.

Since WebAssembly is not a textual format and it does not support comments, it supports a single unambiguous extraction method.
The URL is encoded using [[WasmNamesBinaryFormat]], and it's placed as the content of the [=custom section=].
The URL is encoded using [[WasmNamesBinaryFormat]], and it's placed as the content of the [=custom section=]. It is invalid for
tools that generate WebAssembly code to generate two [=custom section=] with the "sourceMappingURL" name.

Linking eval'd code to named generated code
-------------------------------------------
Expand Down

0 comments on commit f14a7f8

Please sign in to comment.