MCPcopy Index your code
hub / github.com/nodejs/node / reconstructValue

Method reconstructValue

deps/v8/test/debugger/test-api.js:462–473  ·  view source on GitHub ↗
(objectId)

Source from the content-addressed store, hash-verified

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;

Callers 1

Calls 4

createMessageMethod · 0.95
sendMessageMethod · 0.95
takeReplyCheckedMethod · 0.95
ObjectFunction · 0.85

Tested by

no test coverage detected