Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from JSMonk/patch-2
Browse files Browse the repository at this point in the history
Add the paragraph about WebAssembly `sourceMappingURL` section
  • Loading branch information
littledan authored Oct 23, 2023
2 parents 7e50774 + a2596dd commit 45c0f20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source-map.bs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ spec:bikeshed-1; type:dfn; for:railroad; text:optional
"href": "https://docs.google.com/document/d/1xi12LrcqjqIHTtZzrzZKmQ3lbTv9mKrN076UB-j3UZQ/edit?hl=en_US",
"publisher": "Google",
"title": "Source Map Revision 2 Proposal"
},
"WasmCustomSection": {
"href": "https://www.w3.org/TR/wasm-core-2/binary/modules.html#custom-section",
"publisher": "W3C",
"status": "Living Standard",
"title": "WebAssembly custom section"
}
}
</pre>
Expand Down Expand Up @@ -356,6 +362,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`.

`<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 45c0f20

Please sign in to comment.