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

Issue 2451153002: [modules] Improve error messages. (Closed)

Created:
4 years, 1 month ago by neis
Modified:
4 years, 1 month ago
Reviewers:
adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[modules] Improve error messages. For instance, when an import cannot be resolved, actually point at the corresponding import statement. BUG=v8:1569 Committed: https://crrev.com/038a81976efdfa399da1b872a349d344d1aba837 Cr-Commit-Position: refs/heads/master@{#40594}

Patch Set 1 : . #

Total comments: 2

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -184 lines) Patch
M src/ast/modules.h View 1 chunk +1 line, -1 line 0 comments Download
M src/ast/modules.cc View 1 2 chunks +9 lines, -1 line 0 comments Download
M src/ast/scopeinfo.cc View 1 chunk +4 lines, -1 line 0 comments Download
M src/messages.h View 2 chunks +4 lines, -2 lines 0 comments Download
M src/objects.h View 1 3 chunks +11 lines, -6 lines 0 comments Download
M src/objects.cc View 1 8 chunks +42 lines, -20 lines 0 comments Download
M src/objects-inl.h View 1 chunk +8 lines, -0 lines 0 comments Download
M src/parsing/parser.cc View 5 chunks +14 lines, -7 lines 0 comments Download
M test/message/message.status View 1 chunk +10 lines, -0 lines 0 comments Download
A + test/message/modules-cycle1.js View 1 chunk +1 line, -1 line 0 comments Download
A test/message/modules-cycle1.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-cycle2.js View 1 chunk +1 line, -1 line 0 comments Download
A test/message/modules-cycle2.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-cycle3.js View 1 chunk +2 lines, -1 line 0 comments Download
A test/message/modules-cycle3.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-cycle4.js View 1 chunk +1 line, -1 line 0 comments Download
A test/message/modules-cycle4.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-duplicate-export1.js View 1 chunk +2 lines, -1 line 0 comments Download
A test/message/modules-duplicate-export1.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-duplicate-export2.js View 1 chunk +2 lines, -1 line 0 comments Download
A test/message/modules-duplicate-export2.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-duplicate-export3.js View 1 chunk +3 lines, -1 line 0 comments Download
A test/message/modules-duplicate-export3.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-duplicate-export4.js View 1 chunk +3 lines, -1 line 0 comments Download
A test/message/modules-duplicate-export4.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-import-redeclare1.js View 1 chunk +2 lines, -1 line 0 comments Download
A test/message/modules-import-redeclare1.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-import-redeclare2.js View 1 chunk +2 lines, -1 line 0 comments Download
A test/message/modules-import-redeclare2.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-import-redeclare3.js View 1 chunk +2 lines, -1 line 0 comments Download
A test/message/modules-import-redeclare3.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-import1.js View 1 chunk +1 line, -1 line 0 comments Download
A test/message/modules-import1.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-import2.js View 1 chunk +1 line, -1 line 0 comments Download
A test/message/modules-import2.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-import3.js View 1 chunk +1 line, -1 line 0 comments Download
A test/message/modules-import3.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-import4.js View 1 chunk +2 lines, -1 line 0 comments Download
A test/message/modules-import4.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-import5.js View 1 chunk +3 lines, -1 line 0 comments Download
A test/message/modules-import5.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-import6.js View 1 chunk +3 lines, -1 line 0 comments Download
A test/message/modules-import6.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-skip-cycle2.js View 1 chunk +1 line, -1 line 0 comments Download
A + test/message/modules-skip-cycle3.js View 1 chunk +2 lines, -4 lines 0 comments Download
A + test/message/modules-star-conflict1.js View 1 chunk +1 line, -1 line 0 comments Download
A test/message/modules-star-conflict1.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-star-conflict2.js View 1 chunk +3 lines, -3 lines 0 comments Download
A test/message/modules-star-conflict2.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-star-default.js View 1 chunk +1 line, -1 line 0 comments Download
A test/message/modules-star-default.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-undefined-export1.js View 1 chunk +3 lines, -1 line 0 comments Download
A test/message/modules-undefined-export1.out View 1 chunk +5 lines, -0 lines 0 comments Download
A + test/message/modules-undefined-export2.js View 1 chunk +3 lines, -1 line 0 comments Download
A test/message/modules-undefined-export2.out View 1 chunk +5 lines, -0 lines 0 comments Download
M test/mjsunit/mjsunit.status View 2 chunks +4 lines, -11 lines 0 comments Download
D test/mjsunit/modules-fail-1.js View 1 chunk +0 lines, -7 lines 0 comments Download
D test/mjsunit/modules-fail-2.js View 1 chunk +0 lines, -7 lines 0 comments Download
D test/mjsunit/modules-fail-3.js View 1 chunk +0 lines, -7 lines 0 comments Download
D test/mjsunit/modules-fail-4.js View 1 chunk +0 lines, -8 lines 0 comments Download
D test/mjsunit/modules-fail-5.js View 1 chunk +0 lines, -9 lines 0 comments Download
D test/mjsunit/modules-fail-6.js View 1 chunk +0 lines, -8 lines 0 comments Download
D test/mjsunit/modules-fail-7.js View 1 chunk +0 lines, -8 lines 0 comments Download
D test/mjsunit/modules-fail-8.js View 1 chunk +0 lines, -7 lines 0 comments Download
D test/mjsunit/modules-fail-cyclic-1.js View 1 chunk +0 lines, -8 lines 0 comments Download
D test/mjsunit/modules-fail-cyclic-2.js View 1 chunk +0 lines, -8 lines 0 comments Download
D test/mjsunit/modules-fail-cyclic-3.js View 1 chunk +0 lines, -8 lines 0 comments Download
D test/mjsunit/modules-fail-star-exports-conflict.js View 1 chunk +0 lines, -10 lines 0 comments Download
D test/mjsunit/modules-skip-cyclic.js View 1 chunk +0 lines, -5 lines 0 comments Download
D test/mjsunit/modules-skip-cyclic-3.js View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (14 generated)
neis
ptal
4 years, 1 month ago (2016-10-26 12:11:41 UTC) #9
adamk
lgtm! https://codereview.chromium.org/2451153002/diff/60001/src/ast/modules.cc File src/ast/modules.cc (right): https://codereview.chromium.org/2451153002/diff/60001/src/ast/modules.cc#newcode194 src/ast/modules.cc:194: entry->location.beg_pos = import->second->location.beg_pos; Why can't you just assign ...
4 years, 1 month ago (2016-10-26 12:38:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2451153002/2
4 years, 1 month ago (2016-10-26 14:40:07 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:2)
4 years, 1 month ago (2016-10-26 15:09:55 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:14:10 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/038a81976efdfa399da1b872a349d344d1aba837
Cr-Commit-Position: refs/heads/master@{#40594}

Powered by Google App Engine
This is Rietveld 408576698