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

Method execStateScopeObjectProperty

deps/v8/test/debugger/test-api.js:328–348  ·  view source on GitHub ↗
(serialized_scope, prop)

Source from the content-addressed store, hash-verified

326 }
327
328 execStateScopeObjectProperty(serialized_scope, prop) {
329 let found = null;
330 for (let i = 0; i < serialized_scope.length; i++) {
331 const elem = serialized_scope[i];
332 if (elem.name == prop) {
333 found = elem;
334 break;
335 }
336 }
337
338 if (found == null) return { isUndefined: () => true };
339 if (found.value === undefined) return { isUnavailable: () => true };
340
341 const val = { value : () => found.value.value };
342 // Not undefined in the sense that we did find a property, even though
343 // the value can be 'undefined'.
344 return { value : () => val,
345 isUndefined: () => false,
346 isUnavailable: () => false,
347 };
348 }
349
350 // Returns an array of property descriptors of the scope object.
351 // This is in contrast to the original API, which simply passed object

Callers 1

execStateScopeObjectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected