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

Issue 465283002: Blink-in-JS: Make error messages thrown in private scripts more verbose (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

Blink-in-JS: Make error messages thrown in private scripts more verbose - Split compilation of private scripts from running installClass(), in order to distinguish a compile error with a runtime error that happens in installClass(). - Added ScriptOrigin to private scripts. By doing this, dumpV8Message() can print a file name and a line number where an error is triggered. - Refactored PrivateScriptRunner.cpp a bit. This just affects fprintf(stderr) and doesn't change any web-exposed behavior. BUG=341031 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180180

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 5

Patch Set 7 : #

Patch Set 8 : #

Total comments: 3

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -65 lines) Patch
M Source/bindings/core/v8/PrivateScriptRunner.cpp View 1 2 3 4 5 6 7 8 10 chunks +72 lines, -63 lines 0 comments Download
M Source/bindings/core/v8/V8ScriptRunner.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/core/v8/V8ScriptRunner.cpp View 1 chunk +12 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
haraken
jl@: PTAL
6 years, 4 months ago (2014-08-13 11:46:31 UTC) #1
Jens Widell
https://codereview.chromium.org/465283002/diff/100001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/465283002/diff/100001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode44 Source/bindings/core/v8/PrivateScriptRunner.cpp:44: static v8::Handle<v8::Value> compilePrivateScript(v8::Isolate* isolate, String className, const unsigned char* ...
6 years, 4 months ago (2014-08-13 12:08:38 UTC) #2
haraken
Thanks for review. https://codereview.chromium.org/465283002/diff/100001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/465283002/diff/100001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode44 Source/bindings/core/v8/PrivateScriptRunner.cpp:44: static v8::Handle<v8::Value> compilePrivateScript(v8::Isolate* isolate, String className, ...
6 years, 4 months ago (2014-08-13 12:37:57 UTC) #3
Jens Widell
LGTM https://codereview.chromium.org/465283002/diff/100001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/465283002/diff/100001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode48 Source/bindings/core/v8/PrivateScriptRunner.cpp:48: String fileName = className + ".js"; On 2014/08/13 ...
6 years, 4 months ago (2014-08-13 12:56:19 UTC) #4
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 4 months ago (2014-08-13 12:59:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/465283002/140001
6 years, 4 months ago (2014-08-13 13:01:54 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_blink_compile_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-13 13:59:25 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-13 14:04:09 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/19649)
6 years, 4 months ago (2014-08-13 14:04:10 UTC) #9
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 4 months ago (2014-08-13 14:09:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/465283002/160001
6 years, 4 months ago (2014-08-13 14:09:26 UTC) #11
Jens Widell
https://codereview.chromium.org/465283002/diff/140001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/465283002/diff/140001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode89 Source/bindings/core/v8/PrivateScriptRunner.cpp:89: compileAndRunPrivateScript(isolate, kPrivateScriptSourcesForTesting[index].className, kPrivateScriptSources[index].source, kPrivateScriptSources[index].size); Ah, shouldn't be *ForTesting here.
6 years, 4 months ago (2014-08-13 14:09:34 UTC) #12
haraken
https://codereview.chromium.org/465283002/diff/140001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/465283002/diff/140001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode89 Source/bindings/core/v8/PrivateScriptRunner.cpp:89: compileAndRunPrivateScript(isolate, kPrivateScriptSourcesForTesting[index].className, kPrivateScriptSources[index].source, kPrivateScriptSources[index].size); On 2014/08/13 14:09:34, Jens Lindström ...
6 years, 4 months ago (2014-08-13 14:10:36 UTC) #13
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 15:09:34 UTC) #14
Message was sent while issue was closed.
Committed patchset #9 (160001) as 180180

Powered by Google App Engine
This is Rietveld 408576698