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

Issue 861623002: Add a pretty printer to improve the error message non-function calls (Closed)

Created:
5 years, 11 months ago by Toon Verwaest
Modified:
5 years, 11 months ago
Reviewers:
caitp (gmail), Yang
CC:
v8-dev, paulirish
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add a pretty printer to improve the error message non-function calls BUG=259443 LOG=y Committed: https://crrev.com/ac2b1cea9718d35ffddac5e5a656e6669296e404 Cr-Commit-Position: refs/heads/master@{#26189}

Patch Set 1 #

Patch Set 2 : Fix and adjust tests #

Patch Set 3 : Get closer to FF #

Patch Set 4 : Closer #

Patch Set 5 : simplify #

Patch Set 6 : Update webkit testsx #

Patch Set 7 : Update test expectations #

Total comments: 5

Patch Set 8 : Fix array literals #

Patch Set 9 : Only parse function, support regexp #

Patch Set 10 : Parse as script if it's not a function #

Total comments: 1

Patch Set 11 : Addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -21 lines) Patch
M src/compiler.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -2 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/messages.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -4 lines 0 comments Download
M src/prettyprinter.h View 1 chunk +37 lines, -0 lines 0 comments Download
M src/prettyprinter.cc View 1 2 3 4 5 6 7 8 1 chunk +420 lines, -0 lines 0 comments Download
M src/runtime.js View 1 2 chunks +6 lines, -2 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +27 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 4 chunks +4 lines, -5 lines 0 comments Download
M test/mozilla/mozilla.status View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M test/webkit/exception-for-nonobject-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M test/webkit/fast/js/toString-overrides-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download
M test/webkit/run-json-stringify-expected.txt View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (7 generated)
Toon Verwaest
PTAL
5 years, 11 months ago (2015-01-19 16:34:29 UTC) #2
caitp (gmail)
https://codereview.chromium.org/861623002/diff/120001/test/webkit/fast/js/toString-overrides-expected.txt File test/webkit/fast/js/toString-overrides-expected.txt (right): https://codereview.chromium.org/861623002/diff/120001/test/webkit/fast/js/toString-overrides-expected.txt#newcode31 test/webkit/fast/js/toString-overrides-expected.txt:31: FAIL [1].toLocaleString() should be 1. Threw exception TypeError: (intermediate ...
5 years, 11 months ago (2015-01-19 16:44:58 UTC) #4
Toon Verwaest
I'm not sure what you are asking exactly. The previous error was most of the ...
5 years, 11 months ago (2015-01-19 17:42:26 UTC) #5
caitp (gmail)
On 2015/01/19 17:42:26, Toon Verwaest wrote: > I'm not sure what you are asking exactly. ...
5 years, 11 months ago (2015-01-19 17:52:41 UTC) #6
Toon Verwaest
The (intermediate value) occurs depending on the receiver expression. If the receiver expression is, say, ...
5 years, 11 months ago (2015-01-19 18:07:02 UTC) #7
paulirish
Taking the example from the test here.. RegExp.prototype.toLocaleString = "invalid"; [/r/].toLocaleString() Currently, Chrome : TypeError: ...
5 years, 11 months ago (2015-01-19 21:38:24 UTC) #8
Toon Verwaest
The reason why I opted for Firefox style is that it limits the output to ...
5 years, 11 months ago (2015-01-19 21:50:40 UTC) #9
paulirish1
I understand the thrust, but I think the verbatim copy helps orient the developer better ...
5 years, 11 months ago (2015-01-19 22:08:39 UTC) #10
Toon Verwaest
So you suggest having both? Otherwise I can also rip out the ast visitor again ...
5 years, 11 months ago (2015-01-19 22:22:19 UTC) #11
paulirish1
Yeah I suggest having both. The AST visitor gives much better immediate errors, but I ...
5 years, 11 months ago (2015-01-20 00:57:21 UTC) #12
Yang
Looking good. I got some comments. That aside, I got this weird behavior: [1, 2][0]() ...
5 years, 11 months ago (2015-01-20 08:19:07 UTC) #13
Yang
On 2015/01/20 08:19:07, Yang wrote: > Looking good. I got some comments. > > That ...
5 years, 11 months ago (2015-01-20 08:19:36 UTC) #14
Yang
On 2015/01/20 08:19:36, Yang wrote: > On 2015/01/20 08:19:07, Yang wrote: > > Looking good. ...
5 years, 11 months ago (2015-01-20 08:31:03 UTC) #15
Yang
LGTM with a nit. The code duplication is a bit lame, but I guess the ...
5 years, 11 months ago (2015-01-20 11:18:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/861623002/200001
5 years, 11 months ago (2015-01-21 10:33:10 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/105)
5 years, 11 months ago (2015-01-21 10:48:25 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/861623002/200001
5 years, 11 months ago (2015-01-21 11:55:25 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm_rel on tryserver.v8 (http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm_rel/builds/838)
5 years, 11 months ago (2015-01-21 12:51:59 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/861623002/200001
5 years, 11 months ago (2015-01-21 13:07:35 UTC) #26
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 11 months ago (2015-01-21 13:40:38 UTC) #27
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/ac2b1cea9718d35ffddac5e5a656e6669296e404 Cr-Commit-Position: refs/heads/master@{#26189}
5 years, 11 months ago (2015-01-21 13:40:56 UTC) #28
Michael Achenbach
This changes layout test expectations for win and mac. Please land an upstream rebaseline request ...
5 years, 11 months ago (2015-01-21 16:44:28 UTC) #29
Toon Verwaest
5 years, 11 months ago (2015-01-21 17:20:43 UTC) #30
Message was sent while issue was closed.
I did, but I guess I forgot one. On its way:
https://codereview.chromium.org/856393003/

Powered by Google App Engine
This is Rietveld 408576698