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

Function CheckScopeChainPositions

deps/v8/test/debugger/debug/debug-scopes.js:169–181  ·  view source on GitHub ↗
(positions, exec_state)

Source from the content-addressed store, hash-verified

167
168// Check that the scopes have positions as expected.
169function CheckScopeChainPositions(positions, exec_state) {
170 var all_scopes = exec_state.frame().allScopes();
171 assertEquals(positions.length, all_scopes.length, "FrameMirror.allScopes length");
172 for (var i = 0; i < positions.length; i++) {
173 var scope = exec_state.frame().scope(i);
174 var position = positions[i];
175 if (!position)
176 continue;
177
178 // assertEquals(position.start, scope.details().startPosition())
179 // assertEquals(position.end, scope.details().endPosition())
180 }
181}
182
183// Simple empty local scope.
184BeginTest("Local 1");

Callers 1

debug-scopes.jsFile · 0.70

Calls 2

allScopesMethod · 0.80
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…