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

Issue 218026: DevTools: autoresume execution on parse errors. (Closed)

Created:
11 years, 3 months ago by yurys
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), pam+watch_chromium.org, Ben Goodger (Google), tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

DevTools: autoresume execution on parse errors. BUG=22852 TEST=DevToolsSanityTest.TestAutoContinueOnSyntaxError Commited http://src.chromium.org/viewvc/chrome?view=rev&revision=27067

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -10 lines) Patch
M chrome/browser/debugger/devtools_sanity_unittest.cc View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
A chrome/test/data/devtools/script_syntax_error.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M webkit/glue/devtools/js/debugger_agent.js View 1 2 3 4 5 1 chunk +3 lines, -2 lines 2 comments Download
M webkit/glue/devtools/js/tests.js View 1 2 3 4 5 2 chunks +65 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
yurys
11 years, 3 months ago (2009-09-24 14:43:54 UTC) #1
pfeldman
LG overall, some comments inside. http://codereview.chromium.org/218026/diff/16/1003 File webkit/glue/devtools/js/tests.js (right): http://codereview.chromium.org/218026/diff/16/1003#newcode683 Line 683: test.assertEquals(1, options.length, this ...
11 years, 3 months ago (2009-09-24 14:54:50 UTC) #2
yurys
http://codereview.chromium.org/218026/diff/16/1003 File webkit/glue/devtools/js/tests.js (right): http://codereview.chromium.org/218026/diff/16/1003#newcode683 Line 683: test.assertEquals(1, options.length, On 2009/09/24 14:54:50, pfeldman wrote: > ...
11 years, 3 months ago (2009-09-24 15:12:08 UTC) #3
Søren Thygesen Gjesse
LGTM, but consider this http://codereview.chromium.org/218026/diff/1011/18 File webkit/glue/devtools/js/debugger_agent.js (right): http://codereview.chromium.org/218026/diff/1011/18#newcode795 Line 795: if (this.pauseOnExceptions_ && body.script) ...
11 years, 2 months ago (2009-09-25 06:28:45 UTC) #4
yurys
http://codereview.chromium.org/218026/diff/1011/18 File webkit/glue/devtools/js/debugger_agent.js (right): http://codereview.chromium.org/218026/diff/1011/18#newcode795 Line 795: if (this.pauseOnExceptions_ && body.script) { On 2009/09/25 06:28:46, ...
11 years, 2 months ago (2009-09-25 14:01:55 UTC) #5
Søren Thygesen Gjesse
11 years, 2 months ago (2009-09-28 07:40:10 UTC) #6
On 2009/09/25 14:01:55, Yury Semikhatsky wrote:
> http://codereview.chromium.org/218026/diff/1011/18
> File webkit/glue/devtools/js/debugger_agent.js (right):
> 
> http://codereview.chromium.org/218026/diff/1011/18#newcode795
> Line 795: if (this.pauseOnExceptions_ && body.script) {
> On 2009/09/25 06:28:46, Søren Gjesse wrote:
> > The assumption that if there is no script information then it is a parsing
> error
> > seems fragile. Changes to V8 might break that. I think we should aim for
> adding
> > information to the exception event which will make this check more robust.
> 
> Are there other cases when body.script is undefined except parsing errors or
we
> can just add something like body.isParsingError flag?

I think we should stick to using the error types defined in the ECMA-262 error
types (EvalError, RangeError, ReferenceError, SyntaxError, TypeError and
URIError). The ErrorMirror have the constructor function, which will be
SyntaxError in this case.

Powered by Google App Engine
This is Rietveld 408576698