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 885043002: [V8] Added line, column and script symbols for SyntaxError (Closed)

Created:
5 years, 10 months ago by kozy
Modified:
5 years, 10 months ago
Reviewers:
yurys, Yang
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[V8] Added line, column and script symbols for SyntaxError For exception in promise we generate v8::Message API object from exception object. And in cases of Syntax or Reference Error we don't have enough information in exception object - we can't restore Error location from top stack frame. In this patch three aditional private fields introduced for exception object. In case of Syntax Error we store line, column and script on Exception object and receive this information when restoring message. BUG=443140 LOG=Y R=yurys@chromium.org Committed: https://crrev.com/4e9e1eedf1ba399d00b53adf6e5722d442ed9797 Cr-Commit-Position: refs/heads/master@{#26393}

Patch Set 1 #

Patch Set 2 : Test added #

Total comments: 6

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -13 lines) Patch
M src/heap/heap.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M src/isolate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 2 2 chunks +33 lines, -3 lines 0 comments Download
M src/parser.cc View 1 2 1 chunk +20 lines, -1 line 0 comments Download
M test/cctest/test-api.cc View 1 2 3 6 chunks +52 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
kozy
Yury, please take a look.
5 years, 10 months ago (2015-01-29 14:08:46 UTC) #1
yurys
This needs a test
5 years, 10 months ago (2015-01-30 13:56:24 UTC) #2
kozy
Test added.
5 years, 10 months ago (2015-01-30 17:50:19 UTC) #3
yurys
It might be worth mentioning in description that in case of syntax error call stack ...
5 years, 10 months ago (2015-02-02 07:07:57 UTC) #4
kozy
https://codereview.chromium.org/885043002/diff/20001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/885043002/diff/20001/src/isolate.cc#newcode1080 src/isolate.cc:1080: const int start_pos_value = Handle<Smi>::cast(start_pos)->value(); On 2015/02/02 07:07:56, yurys ...
5 years, 10 months ago (2015-02-02 09:18:57 UTC) #5
yurys
lgtm https://codereview.chromium.org/885043002/diff/40001/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/885043002/diff/40001/test/cctest/test-api.cc#newcode18166 test/cctest/test-api.cc:18166: promise_reject_line_number = stack_trace->GetFrame(0)->GetLineNumber(); Consider adding promise_reject_line_number here and ...
5 years, 10 months ago (2015-02-02 09:38:31 UTC) #6
kozy
Yang, please take a look. https://codereview.chromium.org/885043002/diff/40001/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/885043002/diff/40001/test/cctest/test-api.cc#newcode18166 test/cctest/test-api.cc:18166: promise_reject_line_number = stack_trace->GetFrame(0)->GetLineNumber(); On ...
5 years, 10 months ago (2015-02-02 10:09:33 UTC) #8
Yang
On 2015/02/02 10:09:33, kozyatinskiy wrote: > Yang, please take a look. > > https://codereview.chromium.org/885043002/diff/40001/test/cctest/test-api.cc > ...
5 years, 10 months ago (2015-02-03 08:22:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/885043002/80001
5 years, 10 months ago (2015-02-03 08:27:05 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-03 08:57:31 UTC) #12
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 08:57:44 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4e9e1eedf1ba399d00b53adf6e5722d442ed9797
Cr-Commit-Position: refs/heads/master@{#26393}

Powered by Google App Engine
This is Rietveld 408576698