Skip to content

Commit b32cccb

Browse files
author
Fabrice Bellard
committed
fixed RegExp.prototype[Symbol.split]
1 parent 1e958ab commit b32cccb

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
@@ -44957,7 +44957,7 @@ static JSValue js_regexp_Symbol_split(JSContext *ctx, JSValueConst this_val,
4495744957
if (js_get_length64(ctx, &numberOfCaptures, z))
4495844958
goto exception;
4495944959
for(i = 1; i < numberOfCaptures; i++) {
44960-
sub = JS_ToStringFree(ctx, JS_GetPropertyInt64(ctx, z, i));
44960+
sub = JS_GetPropertyInt64(ctx, z, i);
4496144961
if (JS_IsException(sub))
4496244962
goto exception;
4496344963
if (JS_DefinePropertyValueInt64(ctx, A, lengthA++, sub, JS_PROP_C_W_E | JS_PROP_THROW) < 0)

0 commit comments

Comments
 (0)