summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm-s-parser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index 1fb126ad0..242a4b5a9 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -964,12 +964,15 @@ private:
} else if (input[1] == '\\') {
*write++ = '\\';
input += 2;
+ continue;
} else if (input[1] == 'n') {
*write++ = '\n';
input += 2;
+ continue;
} else if (input[1] == 't') {
*write++ = '\t';
input += 2;
+ continue;
} else {
*write++ = (char)(unhex(input[1])*16 + unhex(input[2]));
input += 3;