fix regex parser error

This commit is contained in:
2026-02-09 14:34:33 -06:00
parent 849123d8fc
commit 1b747720b7
4 changed files with 66 additions and 66 deletions

View File

@@ -357,7 +357,11 @@ var parse = function(tokens, src, filename) {
}
node.pattern = pattern_str
if (length(flags) > 0) node.flags = flags
advance()
// Skip all tokens consumed by the regex re-scan
while (true) {
advance()
if (tok.kind == "eof" || tok.at >= rpos) break
}
ast_node_end(node)
return node
}