• Benedikt Meurer's avatar
    [inspector] Add internal property to identify detached ArrayBuffers. · b886e153
    Benedikt Meurer authored
    This adds an internal property [[IsDetached]] to the inspector preview
    of ArrayBuffer instances, which indicates whether the ArrayBuffer was
    detached (i.e. transfered via `postMessage`). Previously it was rather
    impossible to tell whether an ArrayBuffer was detached, you had to know
    that V8 violates the ECMAScript specification and simply sets the
    byteLength accessor to 0 upon detaching an ArrayBuffer (but even then it
    was still impossible to tell whether that ArrayBuffer wasn't simply an
    empty one from the get go).
    
    Before: https://imgur.com/UcOF83c
    After: https://imgur.com/WjmTehZ
    
    Fixed: chromium:1109102
    Change-Id: I8fb6e2be2fbfe5c62b05dc9d2a0f18378eb4de6c
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2316075
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Commit-Queue: Yang Guo <yangguo@chromium.org>
    Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
    Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#69034}
    b886e153
Name
Last commit
Last update
..
OWNERS Loading commit data...
runtime-array.cc Loading commit data...
runtime-atomics.cc Loading commit data...
runtime-bigint.cc Loading commit data...
runtime-classes.cc Loading commit data...
runtime-collections.cc Loading commit data...
runtime-compiler.cc Loading commit data...
runtime-date.cc Loading commit data...
runtime-debug.cc Loading commit data...
runtime-forin.cc Loading commit data...
runtime-function.cc Loading commit data...
runtime-futex.cc Loading commit data...
runtime-generator.cc Loading commit data...
runtime-internal.cc Loading commit data...
runtime-interpreter.cc Loading commit data...
runtime-intl.cc Loading commit data...
runtime-literals.cc Loading commit data...
runtime-module.cc Loading commit data...
runtime-numbers.cc Loading commit data...
runtime-object.cc Loading commit data...
runtime-operators.cc Loading commit data...
runtime-promise.cc Loading commit data...
runtime-proxy.cc Loading commit data...
runtime-regexp.cc Loading commit data...
runtime-scopes.cc Loading commit data...
runtime-strings.cc Loading commit data...
runtime-symbol.cc Loading commit data...
runtime-test.cc Loading commit data...
runtime-typedarray.cc Loading commit data...
runtime-utils.h Loading commit data...
runtime-wasm.cc Loading commit data...
runtime-weak-refs.cc Loading commit data...
runtime.cc Loading commit data...
runtime.h Loading commit data...