v8/test/inspector/runtime/get-properties-expected.txt
Benedikt Meurer b886e153e9 [inspector] Add internal property to identify detached ArrayBuffers.
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: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69034}
2020-07-24 08:12:21 +00:00

124 lines
2.9 KiB
Plaintext

Checks Runtime.getProperties method
Running test: testObject5
__proto__ own object undefined
foo own string cat
Internal properties
[[PrimitiveValue]] number 5
Running test: testNotOwn
__defineGetter__ inherited function undefined
__defineSetter__ inherited function undefined
__lookupGetter__ inherited function undefined
__lookupSetter__ inherited function undefined
__proto__ inherited no value, getter, setter
a own number 2
b own no value, getter, setter
c inherited number 4
constructor inherited function undefined
d inherited no value, getter
hasOwnProperty inherited function undefined
isPrototypeOf inherited function undefined
propertyIsEnumerable inherited function undefined
toLocaleString inherited function undefined
toString inherited function undefined
valueOf inherited function undefined
Running test: testAccessorsOnly
b own no value, getter, setter
d own no value, setter
Running test: testArray
0 own string red
1 own string green
2 own string blue
__proto__ own object undefined
length own number 3
Running test: testBound
__proto__ own function undefined
length own number 0
name own string bound Number
Internal properties
[[BoundArgs]] object undefined
[[BoundThis]] object undefined
[[TargetFunction]] function undefined
Running test: testObjectThrowsLength
__proto__ own object undefined
length own no value, getter
Running test: testTypedArrayWithoutLength
__proto__ own object undefined
Running test: testClassWithPrivateFields
__proto__ own object undefined
baz own number 4
Private properties
#bar number 3
#foo number 2
__proto__ own object undefined
baz own number 4
Private properties
#bar number 3
#baz number 1
#foo number 2
Internal properties
[[Handler]] object undefined
[[IsRevoked]] boolean false
[[Target]] object undefined
Private properties
#bar number 3
#foo number 2
Running test: testArrayBuffer
[[Int8Array]]
0 own number 1
1 own number 1
2 own number 1
3 own number 1
4 own number 1
5 own number 1
6 own number 1
7 own number 1
__proto__ own object undefined
[[Uint8Array]]
0 own number 1
1 own number 1
2 own number 1
3 own number 1
4 own number 1
5 own number 1
6 own number 1
7 own number 1
__proto__ own object undefined
[[Int16Array]]
0 own number 257
1 own number 257
2 own number 257
3 own number 257
__proto__ own object undefined
[[Int32Array]]
0 own number 16843009
1 own number 16843009
__proto__ own object undefined
[[IsDetached]] false
Running test: testDetachedArrayBuffer
[[Int8Array]]
__proto__ own object undefined
[[Uint8Array]]
__proto__ own object undefined
[[Int16Array]]
__proto__ own object undefined
[[Int32Array]]
__proto__ own object undefined
[[IsDetached]] true
Running test: testArrayBufferWithBrokenUintCtor
[[Int8Array]] own object undefined
[[Uint8Array]] own object undefined
__proto__ own object undefined
Internal properties
[[IsDetached]] boolean false