| |
| ----------------------------------------------------- |
| EXPRESSION: new Set |
| { |
| "_type": "object", |
| "_subtype": "set", |
| "_objectId": "<filtered>", |
| "_description": "Set", |
| "_size": 0, |
| "_preview": { |
| "_type": "object", |
| "_subtype": "set", |
| "_description": "Set", |
| "_lossless": true, |
| "_overflow": false, |
| "_size": 0, |
| "_properties": [], |
| "_entries": [] |
| } |
| } |
| |
| ----------------------------------------------------- |
| EXPRESSION: set = new Set; set.add(1); set.add(2); set.add("key"); set |
| { |
| "_type": "object", |
| "_subtype": "set", |
| "_objectId": "<filtered>", |
| "_description": "Set", |
| "_size": 3, |
| "_preview": { |
| "_type": "object", |
| "_subtype": "set", |
| "_description": "Set", |
| "_lossless": true, |
| "_overflow": false, |
| "_size": 3, |
| "_properties": [], |
| "_entries": [ |
| { |
| "_value": { |
| "_type": "number", |
| "_description": "1", |
| "_lossless": true, |
| "_overflow": false, |
| "_properties": null, |
| "_entries": null |
| } |
| }, |
| { |
| "_value": { |
| "_type": "number", |
| "_description": "2", |
| "_lossless": true, |
| "_overflow": false, |
| "_properties": null, |
| "_entries": null |
| } |
| }, |
| { |
| "_value": { |
| "_type": "string", |
| "_description": "key", |
| "_lossless": true, |
| "_overflow": false, |
| "_properties": null, |
| "_entries": null |
| } |
| } |
| ] |
| } |
| } |
| |
| ----------------------------------------------------- |
| EXPRESSION: set = new Set; set.add({a:1}); set.add(document.body); set.add([1,2]); set |
| { |
| "_type": "object", |
| "_subtype": "set", |
| "_objectId": "<filtered>", |
| "_description": "Set", |
| "_size": 3, |
| "_preview": { |
| "_type": "object", |
| "_subtype": "set", |
| "_description": "Set", |
| "_lossless": false, |
| "_overflow": false, |
| "_size": 3, |
| "_properties": [], |
| "_entries": [ |
| { |
| "_value": { |
| "_type": "object", |
| "_description": "Object", |
| "_lossless": true, |
| "_overflow": false, |
| "_properties": [ |
| { |
| "_name": "a", |
| "_type": "number", |
| "_value": "1" |
| } |
| ], |
| "_entries": null |
| } |
| }, |
| { |
| "_value": { |
| "_type": "object", |
| "_subtype": "node", |
| "_description": "<body>", |
| "_lossless": false, |
| "_overflow": true, |
| "_properties": [ |
| { |
| "_name": "aLink", |
| "_type": "string", |
| "_value": "" |
| }, |
| { |
| "_name": "background", |
| "_type": "string", |
| "_value": "" |
| }, |
| { |
| "_name": "bgColor", |
| "_type": "string", |
| "_value": "" |
| }, |
| { |
| "_name": "link", |
| "_type": "string", |
| "_value": "" |
| }, |
| { |
| "_name": "text", |
| "_type": "string", |
| "_value": "" |
| } |
| ], |
| "_entries": null |
| } |
| }, |
| { |
| "_value": { |
| "_type": "object", |
| "_subtype": "array", |
| "_description": "Array", |
| "_lossless": true, |
| "_overflow": false, |
| "_size": 2, |
| "_properties": [ |
| { |
| "_name": "0", |
| "_type": "number", |
| "_value": "1" |
| }, |
| { |
| "_name": "1", |
| "_type": "number", |
| "_value": "2" |
| } |
| ], |
| "_entries": null |
| } |
| } |
| ] |
| } |
| } |
| |
| ----------------------------------------------------- |
| EXPRESSION: set = new Set; for (var i = 0; i <= 100; i++) set.add(i); set |
| { |
| "_type": "object", |
| "_subtype": "set", |
| "_objectId": "<filtered>", |
| "_description": "Set", |
| "_size": 101, |
| "_preview": { |
| "_type": "object", |
| "_subtype": "set", |
| "_description": "Set", |
| "_lossless": false, |
| "_overflow": true, |
| "_size": 101, |
| "_properties": [], |
| "_entries": [ |
| { |
| "_value": { |
| "_type": "number", |
| "_description": "0", |
| "_lossless": true, |
| "_overflow": false, |
| "_properties": null, |
| "_entries": null |
| } |
| }, |
| { |
| "_value": { |
| "_type": "number", |
| "_description": "1", |
| "_lossless": true, |
| "_overflow": false, |
| "_properties": null, |
| "_entries": null |
| } |
| }, |
| { |
| "_value": { |
| "_type": "number", |
| "_description": "2", |
| "_lossless": true, |
| "_overflow": false, |
| "_properties": null, |
| "_entries": null |
| } |
| }, |
| { |
| "_value": { |
| "_type": "number", |
| "_description": "3", |
| "_lossless": true, |
| "_overflow": false, |
| "_properties": null, |
| "_entries": null |
| } |
| }, |
| { |
| "_value": { |
| "_type": "number", |
| "_description": "4", |
| "_lossless": true, |
| "_overflow": false, |
| "_properties": null, |
| "_entries": null |
| } |
| } |
| ] |
| } |
| } |
| |
| ----------------------------------------------------- |
| EXPRESSION: set = new Set; set.add(set); set |
| { |
| "_type": "object", |
| "_subtype": "set", |
| "_objectId": "<filtered>", |
| "_description": "Set", |
| "_size": 1, |
| "_preview": { |
| "_type": "object", |
| "_subtype": "set", |
| "_description": "Set", |
| "_lossless": false, |
| "_overflow": false, |
| "_size": 1, |
| "_properties": [], |
| "_entries": [ |
| { |
| "_value": { |
| "_type": "object", |
| "_subtype": "set", |
| "_description": "Set", |
| "_lossless": false, |
| "_overflow": true, |
| "_size": 1, |
| "_properties": [], |
| "_entries": [] |
| } |
| } |
| ] |
| } |
| } |
| |
| ----------------------------------------------------- |
| EXPRESSION: set = new WeakSet; strongKey = {id:1}; set.add(strongKey); set |
| { |
| "_type": "object", |
| "_subtype": "weakset", |
| "_objectId": "<filtered>", |
| "_description": "WeakSet", |
| "_size": 1, |
| "_preview": { |
| "_type": "object", |
| "_subtype": "weakset", |
| "_description": "WeakSet", |
| "_lossless": true, |
| "_overflow": false, |
| "_size": 1, |
| "_properties": [], |
| "_entries": [ |
| { |
| "_value": { |
| "_type": "object", |
| "_description": "Object", |
| "_lossless": true, |
| "_overflow": false, |
| "_properties": [ |
| { |
| "_name": "id", |
| "_type": "number", |
| "_value": "1" |
| } |
| ], |
| "_entries": null |
| } |
| } |
| ] |
| } |
| } |
| |