v8/test/cctest/interpreter
Tim van der Lippe 52b4aae2d9 Improve error message when using await in DebugEvaluate
When evaluating a top-level expression while paused on a breakpoint, we
don't support an await expression as top-level statement. In these
cases, the error was not informative and could be improved.

To do so, we now propagate the information from DebugEvaluate to
ParseInfo and use the parse_info in parser-base to throw a more
informative error while parsing.

R=jarin@chromium.org

Fixed: chromium:1132245
Change-Id: I200c5af7391258256d1d86a09cbcae326327a0d9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3247037
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77587}
2021-10-28 09:56:40 +00:00
..
bytecode_expectations Improve error message when using await in DebugEvaluate 2021-10-28 09:56:40 +00:00
bytecode-expectations-printer.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
bytecode-expectations-printer.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
generate-bytecode-expectations.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
interpreter-tester.cc [runtime] Move string table off-heap 2020-08-06 12:27:18 +00:00
interpreter-tester.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
source-position-matcher.cc Fix most instances of -Wunreachable-code-aggressive. 2021-07-01 03:03:25 +00:00
source-position-matcher.h Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-bytecode-generator.cc [cleanup][test] Don't rely on __COUNTER__ in expectations 2021-09-28 11:09:05 +00:00
test-interpreter-intrinsics.cc [interpreter] Remove %_Call 2021-06-17 15:16:41 +00:00
test-interpreter.cc [interpreter] Remove unused interpreter intrinsics 2021-06-17 13:43:41 +00:00
test-source-positions.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00