(objectId)
| 460 | } |
| 461 | |
| 462 | reconstructValue(objectId) { |
| 463 | const {msgid, msg} = this.createMessage( |
| 464 | "Runtime.getProperties", { objectId : objectId, ownProperties: true }); |
| 465 | this.sendMessage(msg); |
| 466 | const reply = this.takeReplyChecked(msgid); |
| 467 | for (const internalProperty of reply.result.internalProperties) { |
| 468 | if (internalProperty.name === '[[PrimitiveValue]]') { |
| 469 | return Object(internalProperty.value.value); |
| 470 | } |
| 471 | } |
| 472 | throw new Error('Remote object is not a value wrapper'); |
| 473 | } |
| 474 | |
| 475 | reconstructRemoteObject(obj) { |
| 476 | let value = obj.value; |
no test coverage detected