[arraybuffer] Add a check for ArrayBuffer::IsDetached in ArrayBufferView
ArrayBufferView and friends currently cache the buffer start and length. The cache is cleared on ArrayBuffer::Detach, which requires ArrayBuffer to keep track of all its ArrayBufferViews in a linked list. This function adds ArrayBuffer::IsDetached before accessing each cached value. This will allow us to remove the linked list and simplify the ownership model and eventually get rid of WTF versions of ArrayBuffer, ArrayBufferView, and friends. Bug: chromium:1008840 Change-Id: Ib29d2d4f493ea4abfad0b85314b7934137fa1857 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2091489Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Ulan Degenbaev <ulan@chromium.org> Cr-Commit-Position: refs/heads/master@{#747741}
Showing
Please register or sign in to comment