Simon Zünd
94d37c9338
[debug] Keep empty scopes in the debugger scope chain
...
ScopeIterator skipped scopes that don't declare any variables (other
than the paused function's own scope). Now that ScopeIterator walks the
full lexical scope tree, keep empty scopes, so that the scope chain
reported via CDP (flagged with Debugger.Scope.emptyReason) matches the
lexical scopes, e.g. to match them against scopes in source maps and to
target them via `evaluateOnCallFrame` with `scopeNumber`.
Empty script scopes and empty eval root scopes (which also back wrapped
and Function() functions) are still skipped. [[Scopes]] is unaffected,
since the inspector omits empty scopes there itself.
R=pfaffe@chromium.org
Bug: 545412300
Change-Id: I0a5c0d71e66f7c4f747770c350713ff97dcc38ee
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8460466
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org >
Commit-Queue: Simon Zünd <szuend@chromium.org >
Cr-Commit-Position: refs/heads/main@{#110382}
2026-10-07 01:32:18 -07:00
..
2026-07-27 05:13:33 -07:00
2026-08-11 00:58:09 -07:00
2025-07-24 01:45:38 -07:00
2026-10-07 01:32:18 -07:00
2021-06-01 11:26:57 +00:00
2026-04-16 07:16:30 -07:00
2026-07-10 03:11:03 -07:00
2026-07-21 07:28:09 -07:00
2021-06-01 11:26:57 +00:00
2018-03-21 10:59:46 +00:00
2018-10-01 11:31:13 +00:00
2024-07-05 11:49:39 +00:00
2019-04-29 13:47:16 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2018-06-03 06:02:59 +00:00
2016-11-16 08:34:44 +00:00
2018-03-21 10:59:46 +00:00
2018-03-21 10:59:46 +00:00
2025-07-24 01:45:38 -07:00
2016-11-22 12:44:18 +00:00
2021-06-01 11:26:57 +00:00
2016-11-16 08:34:44 +00:00
2026-10-06 21:52:25 -07:00
2019-04-29 13:47:16 +00:00
2018-03-21 10:59:46 +00:00
2026-08-05 04:35:02 -07:00
2025-07-24 01:45:38 -07:00
2016-11-11 12:08:34 +00:00
2019-06-27 06:09:22 +00:00
2019-11-06 09:17:04 +00:00
2025-07-24 01:45:38 -07:00
2019-04-29 13:47:16 +00:00
2019-04-29 13:47:16 +00:00
2026-08-05 04:35:02 -07:00
2025-07-24 01:45:38 -07:00
2016-11-07 12:25:24 +00:00
2026-08-05 04:35:02 -07:00
2019-12-06 10:13:00 +00:00
2022-05-03 12:10:30 +00:00
2021-05-11 16:47:04 +00:00
2026-10-06 21:52:25 -07:00
2026-10-06 21:52:25 -07:00
2018-03-21 10:59:46 +00:00
2018-03-21 10:59:46 +00:00
2016-11-10 09:05:29 +00:00
2016-11-10 09:05:29 +00:00
2026-10-07 01:32:18 -07:00
2016-11-07 12:25:24 +00:00
2016-11-07 12:25:24 +00:00
2024-01-24 10:43:56 +00:00
2026-08-31 04:38:16 -07:00
2026-10-06 21:52:25 -07:00
2016-11-22 12:44:18 +00:00
2021-06-01 11:26:57 +00:00
2016-11-22 12:44:18 +00:00
2025-07-24 01:45:38 -07:00
2017-06-30 13:31:44 +00:00
2017-08-02 09:35:28 +00:00
2021-06-01 11:26:57 +00:00
2026-10-06 21:52:25 -07:00
2026-10-07 01:32:18 -07:00
2025-07-24 01:45:38 -07:00
2022-09-01 10:33:03 +00:00
2016-11-07 12:25:24 +00:00
2016-11-07 12:25:24 +00:00
2016-11-07 12:25:24 +00:00
2021-06-01 11:26:57 +00:00
2025-05-21 11:02:20 -07:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2022-05-03 12:10:30 +00:00
2021-06-01 11:26:57 +00:00
2016-11-07 12:25:24 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2021-06-01 11:26:57 +00:00
2016-11-07 12:25:24 +00:00
2018-07-05 21:33:03 +00:00
2019-04-29 13:47:16 +00:00
2016-11-17 09:34:18 +00:00
2026-08-06 02:10:30 -07:00
2025-07-28 05:50:27 -07:00
2025-07-24 01:45:38 -07:00
2016-11-29 12:27:15 +00:00
2026-10-06 21:52:25 -07:00