2017-02-14 11:27:26 +01:00
|
|
|
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
|
2019-03-12 09:01:49 +01:00
|
|
|
value : Symbol(42)
|
2017-02-14 11:27:26 +01:00
|
|
|
}
|
2022-01-18 11:07:27 +01:00
|
|
|
{
|
|
|
|
name : description
|
|
|
|
type : string
|
|
|
|
value : 42
|
|
|
|
}
|
2017-02-14 11:27:26 +01:00
|
|
|
|
2018-05-31 11:11:57 +02:00
|
|
|
expression: Object(BigInt(2))
|
|
|
|
{
|
|
|
|
name : [[PrimitiveValue]]
|
|
|
|
type : bigint
|
|
|
|
value : 2n
|
|
|
|
}
|
|
|
|
|
2017-02-14 11:27:26 +01:00
|
|
|
|
|
|
|
Running test: promise
|
|
|
|
expression: Promise.resolve(42)
|
|
|
|
{
|
2020-10-15 20:17:08 +02:00
|
|
|
name : [[PromiseState]]
|
2017-02-14 11:27:26 +01:00
|
|
|
type : string
|
2020-07-13 10:39:42 +02:00
|
|
|
value : fulfilled
|
2017-02-14 11:27:26 +01:00
|
|
|
}
|
|
|
|
{
|
2020-10-15 20:17:08 +02:00
|
|
|
name : [[PromiseResult]]
|
2017-02-14 11:27:26 +01:00
|
|
|
type : number
|
|
|
|
value : 42
|
|
|
|
}
|
|
|
|
|
|
|
|
expression: new Promise(() => undefined)
|
|
|
|
{
|
2020-10-15 20:17:08 +02:00
|
|
|
name : [[PromiseState]]
|
2017-02-14 11:27:26 +01:00
|
|
|
type : string
|
|
|
|
value : pending
|
|
|
|
}
|
|
|
|
{
|
2020-10-15 20:17:08 +02:00
|
|
|
name : [[PromiseResult]]
|
2017-02-14 11:27:26 +01:00
|
|
|
type : undefined
|
|
|
|
value : undefined
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Running test: generatorObject
|
|
|
|
expression: (function* foo() { yield 1 })()
|
|
|
|
{
|
2020-10-15 20:17:08 +02:00
|
|
|
name : [[GeneratorState]]
|
2017-02-14 11:27:26 +01:00
|
|
|
type : string
|
|
|
|
value : suspended
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Running test: entriesInMapAndSet
|
|
|
|
expression: new Map([[1,2]])
|
2021-09-17 14:34:02 +02:00
|
|
|
{
|
|
|
|
name : size
|
|
|
|
type : number
|
|
|
|
value : 1
|
|
|
|
}
|
2017-02-14 11:27:26 +01:00
|
|
|
[[Entries]]:
|
|
|
|
[
|
|
|
|
[0] : {
|
|
|
|
key : {
|
|
|
|
description : 1
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
|
|
|
type : number
|
|
|
|
}
|
|
|
|
value : {
|
|
|
|
description : 2
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
|
|
|
type : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
expression: new Set([1])
|
2021-09-17 14:34:02 +02:00
|
|
|
{
|
|
|
|
name : size
|
|
|
|
type : number
|
|
|
|
value : 1
|
|
|
|
}
|
2017-02-14 11:27:26 +01:00
|
|
|
[[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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2022-11-18 09:50:46 +00:00
|
|
|
Running test: symbolsAsKeysInEntries
|
|
|
|
expression: new Map([[Symbol('key1'), 1]])
|
|
|
|
{
|
|
|
|
name : size
|
|
|
|
type : number
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
[[Entries]]:
|
|
|
|
[
|
|
|
|
[0] : {
|
|
|
|
key : {
|
|
|
|
description : Symbol(key1)
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
|
|
|
type : symbol
|
|
|
|
}
|
|
|
|
value : {
|
|
|
|
description : 1
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
|
|
|
type : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
expression: new Set([Symbol('key2')])
|
|
|
|
{
|
|
|
|
name : size
|
|
|
|
type : number
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
[[Entries]]:
|
|
|
|
[
|
|
|
|
[0] : {
|
|
|
|
value : {
|
|
|
|
description : Symbol(key2)
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
|
|
|
type : symbol
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
expression: new WeakMap([[Symbol('key3'), 2]])
|
|
|
|
[[Entries]]:
|
|
|
|
[
|
|
|
|
[0] : {
|
|
|
|
key : {
|
|
|
|
description : Symbol(key3)
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
|
|
|
type : symbol
|
|
|
|
}
|
|
|
|
value : {
|
|
|
|
description : 2
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
|
|
|
type : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
expression: new WeakSet([Symbol('key4')])
|
|
|
|
[[Entries]]:
|
|
|
|
[
|
|
|
|
[0] : {
|
|
|
|
value : {
|
|
|
|
description : Symbol(key4)
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
|
|
|
type : symbol
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2017-02-14 11:27:26 +01:00
|
|
|
Running test: iteratorObject
|
|
|
|
expression: (new Map([[1,2]])).entries()
|
|
|
|
[[Entries]]:
|
|
|
|
[
|
|
|
|
[0] : {
|
2017-05-02 10:50:00 +02:00
|
|
|
key : {
|
|
|
|
description : 1
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
|
|
|
type : number
|
|
|
|
}
|
2017-02-14 11:27:26 +01:00
|
|
|
value : {
|
2017-05-02 10:50:00 +02:00
|
|
|
description : 2
|
2017-02-14 11:27:26 +01:00
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
2017-05-02 10:50:00 +02:00
|
|
|
type : number
|
2017-02-14 11:27:26 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
2019-03-04 13:27:08 +01:00
|
|
|
expression: (new Set([1,2])).entries()
|
2017-02-14 11:27:26 +01:00
|
|
|
[[Entries]]:
|
|
|
|
[
|
|
|
|
[0] : {
|
2019-03-04 13:27:08 +01:00
|
|
|
key : {
|
|
|
|
description : 1
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
|
|
|
type : number
|
|
|
|
}
|
2019-02-04 21:13:20 +01:00
|
|
|
value : {
|
2019-03-04 13:27:08 +01:00
|
|
|
description : 1
|
2019-02-04 21:13:20 +01:00
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
2019-03-04 13:27:08 +01:00
|
|
|
type : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
key : {
|
|
|
|
description : 2
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
|
|
|
type : number
|
|
|
|
}
|
|
|
|
value : {
|
|
|
|
description : 2
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
]
|
|
|
|
type : number
|
2017-02-14 11:27:26 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
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]
|
2017-10-18 15:03:02 -07:00
|
|
|
{
|
|
|
|
name : 0
|
|
|
|
type : number
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : 1
|
|
|
|
type : number
|
|
|
|
value : 2
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : 2
|
|
|
|
type : number
|
|
|
|
value : 3
|
|
|
|
}
|
2017-02-14 11:27:26 +01:00
|
|
|
|
|
|
|
expression: /123/
|
2017-10-18 15:03:02 -07:00
|
|
|
{
|
|
|
|
name : lastIndex
|
|
|
|
type : number
|
|
|
|
value : 0
|
|
|
|
}
|
2022-01-18 11:07:27 +01:00
|
|
|
{
|
|
|
|
name : dotAll
|
|
|
|
type : boolean
|
|
|
|
value : false
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : flags
|
|
|
|
type : string
|
|
|
|
value :
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : global
|
|
|
|
type : boolean
|
|
|
|
value : false
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : hasIndices
|
|
|
|
type : boolean
|
|
|
|
value : false
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : ignoreCase
|
|
|
|
type : boolean
|
|
|
|
value : false
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : multiline
|
|
|
|
type : boolean
|
|
|
|
value : false
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : source
|
|
|
|
type : string
|
|
|
|
value : 123
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : sticky
|
|
|
|
type : boolean
|
|
|
|
value : false
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : unicode
|
|
|
|
type : boolean
|
2023-03-30 12:11:08 +02:00
|
|
|
value : false
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : unicodeSets
|
|
|
|
type : boolean
|
2022-01-18 11:07:27 +01:00
|
|
|
value : false
|
|
|
|
}
|
2017-02-14 11:27:26 +01:00
|
|
|
|
|
|
|
expression: ({})
|
|
|
|
|
2024-03-30 09:54:35 +01:00
|
|
|
expression: Boolean.prototype
|
|
|
|
{
|
|
|
|
name : [[PrimitiveValue]]
|
|
|
|
type : boolean
|
|
|
|
value : false
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : toString
|
|
|
|
type : function
|
|
|
|
value :
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : valueOf
|
|
|
|
type : function
|
|
|
|
value :
|
|
|
|
}
|
|
|
|
|
2017-02-14 11:27:26 +01:00
|
|
|
|
|
|
|
Running test: overridenArrayGetter
|
|
|
|
expression: Promise.resolve(42)
|
2017-10-18 15:03:02 -07:00
|
|
|
{
|
2020-10-15 20:17:08 +02:00
|
|
|
name : [[PromiseState]]
|
2017-10-18 15:03:02 -07:00
|
|
|
type : string
|
2020-07-13 10:39:42 +02:00
|
|
|
value : fulfilled
|
2017-10-18 15:03:02 -07:00
|
|
|
}
|
|
|
|
{
|
2020-10-15 20:17:08 +02:00
|
|
|
name : [[PromiseResult]]
|
2017-10-18 15:03:02 -07:00
|
|
|
type : number
|
|
|
|
value : 42
|
|
|
|
}
|
2017-03-21 10:16:54 +01:00
|
|
|
|
2019-09-24 11:56:38 -04:00
|
|
|
|
2019-03-15 18:35:06 +05:30
|
|
|
Running test: privateNames
|
|
|
|
expression: new class { #foo = 1; #bar = 2; baz = 3;}
|
|
|
|
{
|
|
|
|
name : #foo
|
|
|
|
type : number
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : #bar
|
|
|
|
type : number
|
|
|
|
value : 2
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : baz
|
|
|
|
type : number
|
|
|
|
value : 3
|
|
|
|
}
|
|
|
|
|
|
|
|
expression: new class extends class { #baz = 3; } { #foo = 1; #bar = 2; }
|
|
|
|
{
|
|
|
|
name : #baz
|
|
|
|
type : number
|
|
|
|
value : 3
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : #foo
|
|
|
|
type : number
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : #bar
|
|
|
|
type : number
|
|
|
|
value : 2
|
|
|
|
}
|
|
|
|
|
|
|
|
expression: new class extends class { constructor() { return new Proxy({}, {}); } } { #foo = 1; #bar = 2; }
|
2019-09-24 11:56:38 -04:00
|
|
|
|
|
|
|
|
|
|
|
Running test: functionProxy
|
|
|
|
expression: new Proxy(() => {}, { get: () => x++ })
|
|
|
|
{
|
|
|
|
name : length
|
|
|
|
type : number
|
|
|
|
value : 0
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name : name
|
|
|
|
type : string
|
2022-01-18 11:07:27 +01:00
|
|
|
value :
|
2019-09-24 11:56:38 -04:00
|
|
|
}
|
2024-03-30 09:54:35 +01:00
|
|
|
|