]> git.kaiwu.me - quickjs.git/commitdiff
fixed TypedArray.prototype.at
authorFabrice Bellard <fabrice@bellard.org>
Mon, 28 Sep 2026 11:57:18 +0000 (13:57 +0200)
committerFabrice Bellard <fabrice@bellard.org>
Mon, 28 Sep 2026 11:57:18 +0000 (13:57 +0200)
quickjs.c

index 80d448b49632b2b3e7c064298c27ba62435e6371..add115b33c2d4badbf94ce7f460907e1b66f70df 100644 (file)
--- a/quickjs.c
+++ b/quickjs.c
@@ -57771,7 +57771,6 @@ static JSValue js_typed_array_at(JSContext *ctx, JSValueConst this_val,
     if (idx < 0)
         idx = len + idx;
 
-    len = p->u.array.count;
     if (idx < 0 || idx >= len)
         return JS_UNDEFINED;
     return JS_GetPropertyInt64(ctx, this_val, idx);