diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-04-22 19:01:43 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-04-22 19:01:43 +0200 |
commit | b32cccb5fe1da1cdaad68dc56942a49d41d205a3 (patch) | |
tree | 373c34c4ed2f895bbee68915f620428aa6c88858 | |
parent | 1e958abcd83c4160d02b5a4d8fa2d451227a6771 (diff) | |
download | quickjs-b32cccb5fe1da1cdaad68dc56942a49d41d205a3.tar.gz quickjs-b32cccb5fe1da1cdaad68dc56942a49d41d205a3.zip |
fixed RegExp.prototype[Symbol.split]
-rw-r--r-- | quickjs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -44957,7 +44957,7 @@ static JSValue js_regexp_Symbol_split(JSContext *ctx, JSValueConst this_val, if (js_get_length64(ctx, &numberOfCaptures, z)) goto exception; for(i = 1; i < numberOfCaptures; i++) { - sub = JS_ToStringFree(ctx, JS_GetPropertyInt64(ctx, z, i)); + sub = JS_GetPropertyInt64(ctx, z, i); if (JS_IsException(sub)) goto exception; if (JS_DefinePropertyValueInt64(ctx, A, lengthA++, sub, JS_PROP_C_W_E | JS_PROP_THROW) < 0) |