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

Method execStateFrameLocalValue

deps/v8/test/debugger/test-api.js:445–460  ·  view source on GitHub ↗
(frame, index)

Source from the content-addressed store, hash-verified

443 }
444
445 execStateFrameLocalValue(frame, index) {
446 const scope_details = this.getLocalScopeDetails(frame);
447 if (index < 0 || index >= scope_details.length) return undefined;
448
449 const local = scope_details[index];
450
451 if (local.value === undefined) return { isUnavailable: () => true };
452
453 let localValue;
454 switch (local.value.type) {
455 case "undefined": localValue = undefined; break;
456 default: localValue = local.value.value; break;
457 }
458
459 return { value : () => localValue, isUnavailable: () => false };
460 }
461
462 reconstructValue(objectId) {
463 const {msgid, msg} = this.createMessage(

Callers 1

execStateFrameMethod · 0.95

Calls 1

getLocalScopeDetailsMethod · 0.95

Tested by

no test coverage detected