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

Function getGlobalLexicalScopeNames

lib/internal/repl/completion.js:115–125  ·  view source on GitHub ↗
(contextId)

Source from the content-addressed store, hash-verified

113}
114
115function getGlobalLexicalScopeNames(contextId) {
116 return sendInspectorCommand((session) => {
117 let names = [];
118 session.post('Runtime.globalLexicalScopeNames', {
119 executionContextId: contextId,
120 }, (error, result) => {
121 if (!error) names = result.names;
122 });
123 return names;
124 }, () => []);
125}
126
127function filteredOwnPropertyNames(obj) {
128 if (!obj) return [];

Callers 1

completeFunction · 0.85

Calls 2

sendInspectorCommandFunction · 0.85
postMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…