v8/test
Simon Zünd 0a66c1b365 [debug] Don't calculate a blocklist for the script scope
This CL fixes the ScopeIterator when it's created for a stack frame
that represents the script scope. For example the following script:

```
function foo() { debugger; }
foo();
```

Then a ScopeIterator created for the second stack frame (`foo()`)
should not a create a blocklist. This is somewhat a special case,
since the closure_scope_/start_scope_ are the SCRIPT_SCOPE.

Note that the debug-evaluate code can't run into this scenario as
we would never iterate far enough to actually trigger block list
calculation. Nevertheless, since it's possible to create a
`ScopeIterator` that could run into this scenario, we guard
against it.

R=jarin@chromium.org

Bug: chromium:1363561
Change-Id: I0677c257d41c9af5ffc38d390f58997da20fd069
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3960568
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83754}
2022-10-18 05:34:07 +00:00
..
benchmarks Re-enable octane/typescript for deopt_fuzzer 2022-09-09 08:34:45 +00:00
bigint [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
cctest [debug] Don't calculate a blocklist for the script scope 2022-10-18 05:34:07 +00:00
common [wasm-gc] Add new ref.cast taking any reference 2022-10-14 16:24:16 +00:00
debugger [debug] Re-use block lists across multiple local debug-evaluates 2022-10-13 07:44:59 +00:00
debugging [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
fuzzer Reland "[flags] Remove FLAG_* aliases" 2022-10-14 13:13:55 +00:00
fuzzilli [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
inspector [wasm] Add more output to console-profile-wasm test 2022-10-17 15:18:25 +00:00
intl [Intl] Sync to intl-numberformat-v3 PR107 2022-09-16 20:52:26 +00:00
js-perf-test [js-perf-test] Reduce input sizes for small BigInts 2022-10-06 14:23:53 +00:00
memory [snapshot] Fix the Memory.json benchmark 2021-04-28 07:54:34 +00:00
message [symbol-as-weakmap-key] Implement Symbol as WeakMap Keys 2022-09-20 07:24:42 +00:00
mjsunit [wasm-gc] Object.p.toString() should throw on wasm struct/array 2022-10-17 15:56:56 +00:00
mkgrokdump [ptr-compr] Introduce compression scheme class 2022-09-19 12:37:23 +00:00
mozilla [mips32] Delete mips32 from v8 2022-09-13 07:54:54 +00:00
test262 [regexp] Unicode Sets: Implement parser changes and set operations 2022-10-12 12:20:00 +00:00
torque Reland "Reland "[Torque] Generalize Torque literals to larger size"" 2022-02-04 09:40:24 +00:00
unittests [cleanup] More C++20 fixes 2022-10-17 16:15:05 +00:00
wasm-api-tests [wasm-gc] Split any and extern type 2022-07-28 13:09:55 +00:00
wasm-js [wasm] Update spec tests 2022-08-11 11:16:17 +00:00
wasm-spec-tests [mips32] Delete mips32 from v8 2022-09-13 07:54:54 +00:00
webkit [mips32] Delete mips32 from v8 2022-09-13 07:54:54 +00:00
BUILD.gn [test] Move cctest/interpreter to unittests 2022-06-10 08:37:10 +00:00
OWNERS