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

Issue 460573002: JS errors thrown in private scripts should be reported to stderr in Debug builds (Closed)

Created:
6 years, 4 months ago by haraken
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Project:
blink
Visibility:
Public.

Description

JS errors thrown in private scripts should be reported to stderr in Debug builds In order to debug private scripts, JS errors thrown in the private scripts (e.g., ReferenceError thrown when we make a typo in private scripts) need to be reported to stderr. This CL makes the change. The fprintf(stderr, ...) is enabled only in Debug builds. This CL also renames throwDOMExceptionInPrivateScriptIfNeeded to rethrowExceptionInPrivateScript. BUG=341031 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180033

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -43 lines) Patch
M Source/bindings/core/v8/PrivateScriptRunner.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/core/v8/PrivateScriptRunner.cpp View 1 2 2 chunks +40 lines, -19 lines 1 comment Download
M Source/bindings/templates/attributes.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 16 chunks +16 lines, -16 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
haraken
jl@ or yhirano@: PTAL.
6 years, 4 months ago (2014-08-11 09:05:57 UTC) #1
haraken
(hoshi-san: This CL will fix the issue you're facing. Typo in private scripts will trigger ...
6 years, 4 months ago (2014-08-11 09:07:07 UTC) #2
Jens Widell
https://codereview.chromium.org/460573002/diff/1/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/460573002/diff/1/Source/bindings/templates/methods.cpp#newcode531 Source/bindings/templates/methods.cpp:531: V8RethrowTryCatchScope rethrow(block); Unrelated: Using a V8RethrowTryCatchScope here is a ...
6 years, 4 months ago (2014-08-11 09:26:15 UTC) #3
yhirano
If SetVerbose is enabled only in DEBUG builds, do you have separate expectation files for ...
6 years, 4 months ago (2014-08-11 09:27:13 UTC) #4
haraken
Thanks for quick review! https://codereview.chromium.org/460573002/diff/1/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/460573002/diff/1/Source/bindings/templates/methods.cpp#newcode531 Source/bindings/templates/methods.cpp:531: V8RethrowTryCatchScope rethrow(block); On 2014/08/11 09:26:15, ...
6 years, 4 months ago (2014-08-11 09:41:16 UTC) #5
haraken
On 2014/08/11 09:27:13, yhirano wrote: > If SetVerbose is enabled only in DEBUG builds, do ...
6 years, 4 months ago (2014-08-11 09:42:18 UTC) #6
Jens Widell
https://codereview.chromium.org/460573002/diff/1/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/460573002/diff/1/Source/bindings/templates/methods.cpp#newcode534 Source/bindings/templates/methods.cpp:534: if (block.HasCaught()) { On 2014/08/11 09:41:16, haraken wrote: > ...
6 years, 4 months ago (2014-08-11 09:52:47 UTC) #7
haraken
https://codereview.chromium.org/460573002/diff/1/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/460573002/diff/1/Source/bindings/templates/methods.cpp#newcode534 Source/bindings/templates/methods.cpp:534: if (block.HasCaught()) { On 2014/08/11 09:52:47, Jens Lindström wrote: ...
6 years, 4 months ago (2014-08-11 11:56:41 UTC) #8
Jens Widell
LGTM The SetVerbose(false) issue is purely cosmetic, and only affects debug builds anyway, and might ...
6 years, 4 months ago (2014-08-11 12:08:28 UTC) #9
vivekg
lgtm, thanks! This would avoid random crashes due to typo's in the PrivateScripts and report ...
6 years, 4 months ago (2014-08-11 12:10:33 UTC) #10
yhirano
lgtm
6 years, 4 months ago (2014-08-11 12:21:16 UTC) #11
haraken
https://codereview.chromium.org/460573002/diff/1/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/460573002/diff/1/Source/bindings/templates/methods.cpp#newcode534 Source/bindings/templates/methods.cpp:534: if (block.HasCaught()) { On 2014/08/11 12:08:28, Jens Lindström wrote: ...
6 years, 4 months ago (2014-08-11 13:26:20 UTC) #12
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 4 months ago (2014-08-11 13:26:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/460573002/20001
6 years, 4 months ago (2014-08-11 13:27:37 UTC) #14
Jens Widell
On 2014/08/11 13:26:20, haraken wrote: > However, strangely, in fact that does not happen. I ...
6 years, 4 months ago (2014-08-11 14:03:59 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-11 14:29:15 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-11 14:55:41 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/20043)
6 years, 4 months ago (2014-08-11 14:55:42 UTC) #18
haraken
Hmm, yhirano@ is right... With this CL applied, marquee-element.html outputs different test results for Release ...
6 years, 4 months ago (2014-08-12 01:55:36 UTC) #19
haraken
jl@: Updated the CL and the CL description. Would you take another look again? I ...
6 years, 4 months ago (2014-08-12 02:38:33 UTC) #20
Jens Widell
LGTM Not: it's a bit messy to review patch-sets that both rebase and adds new ...
6 years, 4 months ago (2014-08-12 04:38:31 UTC) #21
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 4 months ago (2014-08-12 05:03:34 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/460573002/40001
6 years, 4 months ago (2014-08-12 05:03:54 UTC) #23
haraken
> Not: it's a bit messy to review patch-sets that both rebase and adds new ...
6 years, 4 months ago (2014-08-12 05:04:04 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-12 05:17:25 UTC) #25
commit-bot: I haz the power
Change committed as 180033
6 years, 4 months ago (2014-08-12 05:53:36 UTC) #26
Jens Widell
6 years, 4 months ago (2014-08-12 06:30:57 UTC) #27
Message was sent while issue was closed.
On 2014/08/12 05:04:04, haraken wrote:
> > Not: it's a bit messy to review patch-sets that both rebase and adds new
> > changes. :-)
> 
> Yeah, I should have uploaded a new issue.

Or just upload the rebase and the new changes as two separate patch-sets.

Powered by Google App Engine
This is Rietveld 408576698