Skip to content

Commit eb2c890

Browse files
author
Fabrice Bellard
committed
removed uninitialized variable
1 parent eab6945 commit eb2c890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎quickjs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46285,6 +46285,7 @@ static JSValue js_regexp_constructor(JSContext *ctx, JSValueConst new_target,
4628546285
}
4628646286
}
4628746287
re = js_get_regexp(ctx, pat, FALSE);
46288+
flags = JS_UNDEFINED;
4628846289
if (re) {
4628946290
pattern = JS_DupValue(ctx, JS_MKPTR(JS_TAG_STRING, re->pattern));
4629046291
if (JS_IsUndefined(flags1)) {
@@ -46297,7 +46298,6 @@ static JSValue js_regexp_constructor(JSContext *ctx, JSValueConst new_target,
4629746298
flags = JS_DupValue(ctx, flags1);
4629846299
}
4629946300
} else {
46300-
flags = JS_UNDEFINED;
4630146301
if (pat_is_regexp) {
4630246302
pattern = JS_GetProperty(ctx, pat, JS_ATOM_source);
4630346303
if (JS_IsException(pattern))

0 commit comments

Comments
 (0)