Skip to content

Commit

Permalink
Also return null for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jun 25, 2024
1 parent dadf256 commit faaf960
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source-map.bs
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ a [=byte sequence=] |bytes|, run the following steps:
1. Let |value| be the `bytes` of |customSection|, [=UTF-8 decode without BOM or fail|decoded as UTF-8=].
1. If |value| is failure, return null.
1. Return |value|.
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=].
Expand Down

0 comments on commit faaf960

Please sign in to comment.