mirror of
https://github.com/bellard/quickjs.git
synced 2025-11-15 10:12:14 +03:00
fixed DataView resizing
This commit is contained in:
@@ -55360,7 +55360,12 @@ static void js_array_buffer_update_typed_arrays(JSArrayBuffer *abuf)
|
||||
ta = list_entry(el, JSTypedArray, link);
|
||||
p = ta->obj;
|
||||
if (p->class_id == JS_CLASS_DATAVIEW) {
|
||||
continue;
|
||||
if (ta->track_rab) {
|
||||
if (ta->offset < len)
|
||||
ta->length = len - ta->offset;
|
||||
else
|
||||
ta->length = 0;
|
||||
}
|
||||
} else {
|
||||
p->u.array.count = 0;
|
||||
p->u.array.u.ptr = NULL;
|
||||
|
||||
Reference in New Issue
Block a user