Skip to content

Commit

Permalink
Merge pull request tc39#22 from JSMonk/wasm-source-map-url
Browse files Browse the repository at this point in the history
  • Loading branch information
littledan authored Dec 14, 2023
2 parents 40c7961 + 973c1f1 commit cbbc033
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion source-map.bs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ spec:bikeshed-1; type:dfn; for:railroad; text:optional
"publisher": "W3C",
"status": "Living Standard",
"title": "WebAssembly custom section"
},
"WasmNamesBinaryFormat": {
"href": "https://www.w3.org/TR/wasm-core-2/binary/values.html#names",
"publisher": "W3C",
"status": "Living Standard",
"title": "WebAssembly Names binary format"
}
}
</pre>
Expand Down Expand Up @@ -362,7 +368,7 @@ also accept `//@` but `//#` is preferred.

This recommendation works well for JavaScript, it is expected that other source files will
have different conventions. For instance, for CSS `/*# sourceMappingURL=<url> */` is proposed.
On the WebAssembly side, such URL should be placed as a UTF-8 encoded string in the custom section ([[WasmCustomSection]]) named `sourceMappingURL`.
On the WebAssembly side, such a URL is encoded using [[WasmNamesBinaryFormat]], and it's placed as the content of the custom section ([[WasmCustomSection]]) named `sourceMappingURL`.

`<url>` is a URL as defined in [[URL]]; in particular,
characters outside the set permitted to appear in URIs must be percent-encoded
Expand Down

0 comments on commit cbbc033

Please sign in to comment.