v8/test/inspector/debugger/step-snapshot-expected.txt
Alexey Kozyatinskiy 0b690227f8 Reland "[inspector] fixed location of top level function return"
This is a reland of 4363a69335

Original change's description:
> [inspector] fixed location of top level function return
>
> We should pass false as has_braces argument to create FunctionLiteral
> for top level function.
>
> R=dgozman@chromium.org,bmeurer@chromium.org
> TBR=bmeurer@chromium.org
>
> Bug: none
> Change-Id: I397f31b562d32c71f3a12bfc9ceeed16c367aa80
> Reviewed-on: https://chromium-review.googlesource.com/1098018
> Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
> Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
> Reviewed-by: Yang Guo <yangguo@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#53769}
TBR=dgozman@chromium.org

Bug: v8:7858
Change-Id: Ie636bc101f9d29d9d40bd10b96e62da6505c2734
Reviewed-on: https://chromium-review.googlesource.com/1104497
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53808}
2018-06-18 21:37:49 +00:00

36 lines
431 B
Plaintext

Embedding script 'function c(f, ...args) { return f(...args); }'
Tests that stepping works on snapshotted function
paused
}
#debugger;
c(f, 2);
paused
debugger;
#c(f, 2);
}
paused
function c(f, ...args) { #return f(...args); }
paused
function f(x) {
#return x * 2;
}
paused
function f(x) {
return x * 2;#
}
paused
function c(f, ...args) { return f(...args);# }
paused
c(f, 2);
#}
paused
test()#