• 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
..
console Loading commit data...
cpu-profiler Loading commit data...
debugger Loading commit data...
heap-profiler Loading commit data...
runtime Loading commit data...
runtime-call-stats Loading commit data...
sessions Loading commit data...
type-profiler Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
OWNERS Loading commit data...
inspector-test.cc Loading commit data...
inspector.status Loading commit data...
isolate-data.cc Loading commit data...
isolate-data.h Loading commit data...
json-parse-expected.txt Loading commit data...
json-parse.js Loading commit data...
print-method-not-found-expected.txt Loading commit data...
print-method-not-found.js Loading commit data...
protocol-test.js Loading commit data...
task-runner.cc Loading commit data...
task-runner.h Loading commit data...
testcfg.py Loading commit data...
wasm-inspector-test.js Loading commit data...