| 182 | } |
| 183 | |
| 184 | function stripProbePreviews(value) { |
| 185 | if (value === undefined || value === null || typeof value !== 'object') { |
| 186 | return value; |
| 187 | } |
| 188 | |
| 189 | if (ArrayIsArray(value)) { |
| 190 | return ArrayPrototypeMap(value, stripProbePreviews); |
| 191 | } |
| 192 | |
| 193 | const stripped = { __proto__: null }; |
| 194 | for (const { 0: key, 1: entry } of ObjectEntries(value)) { |
| 195 | if (key === 'preview') { |
| 196 | continue; |
| 197 | } |
| 198 | stripped[key] = stripProbePreviews(entry); |
| 199 | } |
| 200 | return stripped; |
| 201 | } |
| 202 | |
| 203 | // Format CDP RemoteObject values into more readable formats. |
| 204 | function formatRemoteObject(result) { |