We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75b5230 commit 7cfddd0Copy full SHA for 7cfddd0
quickjs.c
@@ -55360,7 +55360,12 @@ static void js_array_buffer_update_typed_arrays(JSArrayBuffer *abuf)
55360
ta = list_entry(el, JSTypedArray, link);
55361
p = ta->obj;
55362
if (p->class_id == JS_CLASS_DATAVIEW) {
55363
- continue;
+ if (ta->track_rab) {
55364
+ if (ta->offset < len)
55365
+ ta->length = len - ta->offset;
55366
+ else
55367
+ ta->length = 0;
55368
+ }
55369
} else {
55370
p->u.array.count = 0;
55371
p->u.array.u.ptr = NULL;
0 commit comments