Don't require ; to have space after in comments

This commit is contained in:
2026-03-15 17:32:14 +00:00
parent 8d4c53ca92
commit 3a103c46d1

3
asm.js
View File

@@ -58,7 +58,8 @@ class Tokenizer {
this.buffer.push(...src); this.buffer.push(...src);
let token; let token;
while (token = this.next()) { while (token = this.next()) {
if (token == this.comment_start) if (token.string == undefined
&& token.startsWith(this.comment_start))
this.comment = true; this.comment = true;
else if (this.comment && token == LINE_END) else if (this.comment && token == LINE_END)
this.comment = false; this.comment = false;