003159e777
We currently report description field for numbers. On client side user can calculate description as remoteObject.unserializableValue || (remoteObject.value + ''). Let's report description only for objects to simplify value -> remoteObject logic a bit. R=dgozman@chromium.org TBR=jgruber@chromium.org Bug: chromium:595206 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel Change-Id: I91356a44aa3024e20c8f966869abf4a41b88e4bc Reviewed-on: https://chromium-review.googlesource.com/737485 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Pavel Feldman <pfeldman@chromium.org> Cr-Commit-Position: refs/heads/master@{#53453}
674 lines
15 KiB
Plaintext
674 lines
15 KiB
Plaintext
Checks internal [[Entries]] in Runtime.getProperties output
|
|
|
|
Running test: maps
|
|
expression: new Map([[1,2],[3,4]])
|
|
[
|
|
[0] : {
|
|
key : 1
|
|
value : 2
|
|
}
|
|
[1] : {
|
|
key : 3
|
|
value : 4
|
|
}
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 0
|
|
value : {
|
|
className : Object
|
|
description : {1 => 2}
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 1
|
|
value : {
|
|
className : Object
|
|
description : {3 => 4}
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[2] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 2
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
expression: new Map()
|
|
[
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 0
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
Running test: mapIterators
|
|
expression: new Map([[1,2],[3,4]]).entries()
|
|
[
|
|
[0] : {
|
|
key : 1
|
|
value : 2
|
|
}
|
|
[1] : {
|
|
key : 3
|
|
value : 4
|
|
}
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 0
|
|
value : {
|
|
className : Object
|
|
description : {1 => 2}
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 1
|
|
value : {
|
|
className : Object
|
|
description : {3 => 4}
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[2] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 2
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
expression: it = new Map([[1,2],[3,4]]).entries(); it.next(); it
|
|
[
|
|
[0] : {
|
|
key : 3
|
|
value : 4
|
|
}
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 0
|
|
value : {
|
|
className : Object
|
|
description : {3 => 4}
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 1
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
expression: it = new Map([[1,2],[3,4]]).keys(); it.next(); it
|
|
[
|
|
[0] : {
|
|
value : 3
|
|
}
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 0
|
|
value : {
|
|
className : Object
|
|
description : 3
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 1
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
expression: it = new Map([[1,2],[3,4]]).values(); it.next(); it
|
|
[
|
|
[0] : {
|
|
value : 4
|
|
}
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 0
|
|
value : {
|
|
className : Object
|
|
description : 4
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 1
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
expression: it = new Map([[1,2],[3,4]]).entries(); it.next(); it.next(); it
|
|
[
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 0
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
Running test: sets
|
|
expression: new Set([1,2])
|
|
[
|
|
[0] : {
|
|
value : 1
|
|
}
|
|
[1] : {
|
|
value : 2
|
|
}
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 0
|
|
value : {
|
|
className : Object
|
|
description : 1
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 1
|
|
value : {
|
|
className : Object
|
|
description : 2
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[2] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 2
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
expression: new Set()
|
|
[
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 0
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
Running test: setIterators
|
|
expression: new Set([1,2]).values()
|
|
[
|
|
[0] : {
|
|
value : 1
|
|
}
|
|
[1] : {
|
|
value : 2
|
|
}
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 0
|
|
value : {
|
|
className : Object
|
|
description : 1
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 1
|
|
value : {
|
|
className : Object
|
|
description : 2
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[2] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 2
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
expression: it = new Set([1,2]).values(); it.next(); it
|
|
[
|
|
[0] : {
|
|
value : 2
|
|
}
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 0
|
|
value : {
|
|
className : Object
|
|
description : 2
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 1
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
expression: it = new Set([1,2]).keys(); it.next(); it
|
|
[
|
|
[0] : {
|
|
value : 2
|
|
}
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 0
|
|
value : {
|
|
className : Object
|
|
description : 2
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 1
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
expression: it = new Set([1,2]).entries(); it.next(); it
|
|
[
|
|
[0] : {
|
|
value : 2
|
|
}
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 0
|
|
value : {
|
|
className : Object
|
|
description : 2
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 1
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
expression: it = new Set([1,2]).values(); it.next(); it.next(); it
|
|
[
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 0
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
Running test: weakMaps
|
|
expression: new WeakMap()
|
|
[
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 0
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
expression: new WeakMap([[{ a: 2 }, 42]])
|
|
[
|
|
[0] : {
|
|
key : {
|
|
a : 2
|
|
}
|
|
value : 42
|
|
}
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 0
|
|
value : {
|
|
className : Object
|
|
description : {Object => 42}
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 1
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
Running test: weakSets
|
|
expression: new WeakSet()
|
|
[
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 0
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
expression: new WeakSet([{a:2}])
|
|
[
|
|
[0] : {
|
|
value : {
|
|
a : 2
|
|
}
|
|
}
|
|
]
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : 0
|
|
value : {
|
|
className : Object
|
|
description : Object
|
|
objectId : <objectId>
|
|
subtype : internal#entry
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : length
|
|
value : {
|
|
type : number
|
|
value : 1
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|