Bump VERSION to commit 76bd203

This commit is contained in:
Alec Murphy
2026-03-12 07:29:52 -04:00
parent 1bc618fa9a
commit 72d6dccbe8
2 changed files with 8 additions and 6 deletions

View File

@@ -1 +1 @@
commit 32064e10caa45e68fc87331ca53d042049cc9396 commit 76bd203f63d3c64fd54955caae4ca831b8e1cdff

View File

@@ -477,7 +477,7 @@ static int isregexpcontext(int last)
static int lexregexp(js_State *J) static int lexregexp(js_State *J)
{ {
const char *s; const char *s;
int g, m, i; int g, m, i, flags;
int inclass = 0; int inclass = 0;
/* already consumed initial '/' */ /* already consumed initial '/' */
@@ -525,10 +525,12 @@ static int lexregexp(js_State *J)
jsY_error(J, "duplicated flag in regular expression"); jsY_error(J, "duplicated flag in regular expression");
J->text = s; J->text = s;
J->number = 0;
if (g) J->number += JS_REGEXP_G; flags = 0;
if (i) J->number += JS_REGEXP_I; if (g) flags |= JS_REGEXP_G;
if (m) J->number += JS_REGEXP_M; if (i) flags |= JS_REGEXP_I;
if (m) flags |= JS_REGEXP_M;
J->number = flags;
return TK_REGEXP; return TK_REGEXP;
} }