v8/test/inspector/debugger/command-line-api-with-arrow-function-expected.txt
Sigurd Schneider 9c40b865ee Fix monitor for arrow functions
Our current logic for the console API's monitor implementation relies on
JavaScript's arguments array. In arrow functions, this results in an
error, resulting missing print statements from monitor.

This CL at least re-enables the print statements, but does not print the
arguments in the case of arrow functions.

Change-Id: Ibf6c2a0fb5e0cc911c257520a59a875992fe3777
Bug: chromium:1206137
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2880216
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74437}
2021-05-07 12:59:28 +00:00

24 lines
483 B
Plaintext

Check that debug and monitor methods from Command Line API works with bound function.
> debug foo and bar
> call foo and bar
paused in foo
paused in bar
> undebug foo and bar
> call foo and bar
> monitor foo and bar
> call foo and bar
function foo called
function bar called
> unmonitor foo and bar
> call foo and bar
> monitor and debug bar
> call bar
function bar called
paused in bar
> undebug bar
> call bar
function bar called
> debug and unmonitor bar
> call bar
paused in bar