diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-05-24 10:12:51 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-05-24 10:12:51 +0200 |
commit | 8b2a1249a46e85271aa7da1738875eb1cbec06d0 (patch) | |
tree | 10c911ed2ed45eb4f138bcf409dc2526da8d9003 /quickjs.c | |
parent | 071a4cf986f089d99486eaddd56450f7829f9096 (diff) | |
download | quickjs-8b2a1249a46e85271aa7da1738875eb1cbec06d0.tar.gz quickjs-8b2a1249a46e85271aa7da1738875eb1cbec06d0.zip |
fixed Regexp.prototype[Symbol.match]
Diffstat (limited to 'quickjs.c')
-rw-r--r-- | quickjs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -45369,7 +45369,7 @@ static JSValue js_regexp_Symbol_match(JSContext *ctx, JSValueConst this_val, if (JS_IsException(matchStr)) goto exception; isEmpty = JS_IsEmptyString(matchStr); - if (JS_SetPropertyInt64(ctx, A, n++, matchStr) < 0) + if (JS_DefinePropertyValueInt64(ctx, A, n++, matchStr, JS_PROP_C_W_E | JS_PROP_THROW) < 0) goto exception; if (isEmpty) { int64_t thisIndex, nextIndex; |