From f14a7f89064f0c1e5f9afb81a7d08da4de46b4d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Tue, 25 Jun 2024 16:50:25 +0200 Subject: [PATCH] Disallow multiple custom sections for sourceMappingURL --- source-map.bs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source-map.bs b/source-map.bs index 493a243..6de0c95 100644 --- a/source-map.bs +++ b/source-map.bs @@ -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 -------------------------------------------