v8/test/inspector/debugger/object-preview-internal-properties-expected.txt
Erik Luo bf505e6065 [inspector] support BigInt in inspector
- Label as "bigint" in DevTools heap snapshot viewer
- Treat as new primitive in injected-script-source
- Show primitive value as property for BigIntObject
- Adds the "n" suffix onto description, both with/without inspector
  being present

Bug: v8:7486
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng;master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_chromium_rel_ng
Change-Id: I47a02e32f9bdd9124a6c91056965574ecd443867
Reviewed-on: https://chromium-review.googlesource.com/940804
Commit-Queue: Erik Luo <luoe@chromium.org>
Reviewed-by: Adam Klein <adamk@chromium.org>
Reviewed-by: Alexei Filippov <alph@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51855}
2018-03-09 21:28:00 +00:00

256 lines
4.1 KiB
Plaintext

Check internal properties reported in object preview.
Running test: boxedObjects
expression: new Number(239)
{
name : [[PrimitiveValue]]
type : number
value : 239
}
expression: new Boolean(false)
{
name : [[PrimitiveValue]]
type : boolean
value : false
}
expression: new String("abc")
{
name : [[PrimitiveValue]]
type : string
value : abc
}
expression: Object(Symbol(42))
{
name : [[PrimitiveValue]]
type : symbol
valuePreview : {
description : Symbol
overflow : false
properties : [
]
type : object
}
}
expression: Object(BigInt(2))
{
name : [[PrimitiveValue]]
type : bigint
value : 2n
}
Running test: promise
expression: Promise.resolve(42)
{
name : [[PromiseStatus]]
type : string
value : resolved
}
{
name : [[PromiseValue]]
type : number
value : 42
}
expression: new Promise(() => undefined)
{
name : [[PromiseStatus]]
type : string
value : pending
}
{
name : [[PromiseValue]]
type : undefined
value : undefined
}
Running test: generatorObject
expression: (function* foo() { yield 1 })()
{
name : [[GeneratorStatus]]
type : string
value : suspended
}
Running test: entriesInMapAndSet
expression: new Map([[1,2]])
[[Entries]]:
[
[0] : {
key : {
description : 1
overflow : false
properties : [
]
type : number
}
value : {
description : 2
overflow : false
properties : [
]
type : number
}
}
]
expression: new Set([1])
[[Entries]]:
[
[0] : {
value : {
description : 1
overflow : false
properties : [
]
type : number
}
}
]
expression: new WeakMap([[{}, 42]])
[[Entries]]:
[
[0] : {
key : {
description : Object
overflow : false
properties : [
]
type : object
}
value : {
description : 42
overflow : false
properties : [
]
type : number
}
}
]
expression: new WeakSet([{}])
[[Entries]]:
[
[0] : {
value : {
description : Object
overflow : false
properties : [
]
type : object
}
}
]
Running test: iteratorObject
expression: (new Map([[1,2]])).entries()
[[Entries]]:
[
[0] : {
key : {
description : 1
overflow : false
properties : [
]
type : number
}
value : {
description : 2
overflow : false
properties : [
]
type : number
}
}
]
expression: (new Set([[1,2]])).entries()
[[Entries]]:
[
[0] : {
value : {
description : Array(2)
overflow : false
properties : [
[0] : {
name : 0
type : number
value : 1
}
[1] : {
name : 1
type : number
value : 2
}
]
subtype : array
type : object
}
}
]
Running test: noPreviewForFunctionObject
(function foo(){})
{
id : <messageId>
result : {
result : {
className : Function
description : function foo(){}
objectId : <objectId>
type : function
}
}
}
Running test: otherObjects
expression: [1,2,3]
{
name : 0
type : number
value : 1
}
{
name : 1
type : number
value : 2
}
{
name : 2
type : number
value : 3
}
expression: /123/
{
name : lastIndex
type : number
value : 0
}
expression: ({})
Running test: overridenArrayGetter
expression: Promise.resolve(42)
{
name : [[PromiseStatus]]
type : string
value : resolved
}
{
name : [[PromiseValue]]
type : number
value : 42
}