summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-binary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r--src/wasm/wasm-binary.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp
index a7bc9c91e..6af46cbd1 100644
--- a/src/wasm/wasm-binary.cpp
+++ b/src/wasm/wasm-binary.cpp
@@ -1200,6 +1200,8 @@ void WasmBinaryBuilder::readSourceMapHeader() {
}
} else if (matching && name[pos] == ch) {
++pos;
+ } else if (matching) {
+ matching = false;
}
}
skipWhitespace();