Skip to content

Commit f908789

Browse files
yurydelendikkripken
authored andcommitted
Don't write sourceMappingURL section if URL is empty. (#1390)
1 parent 6c08114 commit f908789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wasm/wasm-binary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void WasmBinaryWriter::write() {
5555
writeFunctions();
5656
writeDataSegments();
5757
if (debugInfo) writeNames();
58-
if (sourceMap) writeSourceMapUrl();
58+
if (sourceMap && !sourceMapUrl.empty()) writeSourceMapUrl();
5959
if (symbolMap.size() > 0) writeSymbolMap();
6060

6161
if (sourceMap) {

0 commit comments

Comments
 (0)