Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Issue 2851853002: [inspector] entered into context before getPossibleBreakpoints call (Closed)

Created:
3 years, 7 months ago by kozy
Modified:
3 years, 7 months ago
Reviewers:
dgozman, Yang, jgruber
CC:
v8-reviews_googlegroups.com, Yang, devtools-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] entered into context before getPossibleBreakpoints call getPossibleBreakpoints implementation can enforce function compilation which potentially can produce syntax error, we need to have a context to correctly report this error. BUG=chromium:715334 R=dgozman@chromium.org Review-Url: https://codereview.chromium.org/2851853002 Cr-Commit-Position: refs/heads/master@{#45003} Committed: https://chromium.googlesource.com/v8/v8/+/f79c3b51426b5b68f044593979a674106a5432c6

Patch Set 1 #

Total comments: 4

Patch Set 2 : debugger context.. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -4 lines) Patch
M src/inspector/v8-debugger-agent-impl.cc View 1 1 chunk +8 lines, -4 lines 3 comments Download
A test/inspector/debugger/get-possible-breakpoints-lazy-error.js View 1 chunk +28 lines, -0 lines 0 comments Download
A test/inspector/debugger/get-possible-breakpoints-lazy-error-expected.txt View 1 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
kozy
please take a look. I'm not sure about this fix since it looks too lazy ...
3 years, 7 months ago (2017-04-28 19:40:09 UTC) #2
dgozman
I don't really like entering some context when looking for breakpoints. What if I enter ...
3 years, 7 months ago (2017-04-28 20:57:23 UTC) #3
kozy
Dmitry, please take another look. https://codereview.chromium.org/2851853002/diff/1/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2851853002/diff/1/src/inspector/v8-debugger-agent-impl.cc#newcode464 src/inspector/v8-debugger-agent-impl.cc:464: if (!inspected) return Response::InternalError(); ...
3 years, 7 months ago (2017-04-28 21:17:10 UTC) #4
dgozman
lgtm
3 years, 7 months ago (2017-05-01 19:06:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2851853002/20001
3 years, 7 months ago (2017-05-01 19:11:54 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/v8/v8/+/f79c3b51426b5b68f044593979a674106a5432c6
3 years, 7 months ago (2017-05-01 19:44:23 UTC) #10
jgruber
https://codereview.chromium.org/2851853002/diff/20001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2851853002/diff/20001/src/inspector/v8-debugger-agent-impl.cc#newcode466 src/inspector/v8-debugger-agent-impl.cc:466: it->second->getPossibleBreakpoints( For my understanding, why do we neither check ...
3 years, 7 months ago (2017-05-02 07:00:24 UTC) #11
kozy
https://codereview.chromium.org/2851853002/diff/20001/src/inspector/v8-debugger-agent-impl.cc File src/inspector/v8-debugger-agent-impl.cc (right): https://codereview.chromium.org/2851853002/diff/20001/src/inspector/v8-debugger-agent-impl.cc#newcode466 src/inspector/v8-debugger-agent-impl.cc:466: it->second->getPossibleBreakpoints( On 2017/05/02 07:00:23, jgruber wrote: > For my ...
3 years, 7 months ago (2017-05-04 15:23:41 UTC) #12
kozy
3 years, 7 months ago (2017-05-04 15:23:42 UTC) #13
jgruber
3 years, 7 months ago (2017-05-04 15:26:39 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/2851853002/diff/20001/src/inspector/v8-debugg...
File src/inspector/v8-debugger-agent-impl.cc (right):

https://codereview.chromium.org/2851853002/diff/20001/src/inspector/v8-debugg...
src/inspector/v8-debugger-agent-impl.cc:466: it->second->getPossibleBreakpoints(
On 2017/05/04 15:23:41, kozy wrote:
> On 2017/05/02 07:00:23, jgruber wrote:
> > For my understanding, why do we neither check the return value nor whether
> > tryCatch has caught?
> 
> Reason of linked issue is lazy compilation of script with syntax error - there
> is no breakable locations in script with syntax error so reporting empty array
> instead of InternalError sounds good to me.

I see, thanks for the explanation.

Powered by Google App Engine
This is Rietveld 408576698