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

Issue 2852963002: [ES6 modules] ModuleTreeLinker::FetchDescendants should not assume urls isn't empty. (Closed)

Created:
3 years, 7 months ago by kouhei (in TOK)
Modified:
3 years, 7 months ago
Reviewers:
hiroshige, kinuko, yhirano, module-dev
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ES6 modules] ModuleTreeLinker::FetchDescendants should not assume urls isn't empty. Before this CL, we assumed "urls" in ModuleTreeLinker::FetchDescendants() to be non-empty if record.[[RequestedModules]] is not empty. However, this isn't always the case, as the resolved url may be in the ancestor list. This CL removes the DCHECK based on this assumption, and complete the algorithm in that case. TEST=ModuleTreeLinkerTest.FetchDependencyOfCyclicGraph BUG=594639 Review-Url: https://codereview.chromium.org/2852963002 Cr-Commit-Position: refs/heads/master@{#468554} Committed: https://chromium.googlesource.com/chromium/src/+/d087434ab42e298587480260ee4cafbfd002e614

Patch Set 1 #

Total comments: 4

Patch Set 2 : commentfix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -11 lines) Patch
M third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp View 1 2 chunks +20 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerTest.cpp View 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
kouhei (in TOK)
3 years, 7 months ago (2017-05-01 06:42:48 UTC) #4
kouhei (in TOK)
3 years, 7 months ago (2017-05-01 06:43:20 UTC) #7
hiroshige
lgtm https://codereview.chromium.org/2852963002/diff/1/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp File third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp (right): https://codereview.chromium.org/2852963002/diff/1/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp#newcode288 third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp:288: // Step 5, when "urls" is empty, or... ...
3 years, 7 months ago (2017-05-01 18:00:49 UTC) #10
kinuko
lgtm https://codereview.chromium.org/2852963002/diff/1/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp File third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp (right): https://codereview.chromium.org/2852963002/diff/1/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp#newcode290 third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp:290: // this algorithm with module script. If line ...
3 years, 7 months ago (2017-05-01 22:27:02 UTC) #11
hiroshige
https://codereview.chromium.org/2852963002/diff/1/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp File third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp (right): https://codereview.chromium.org/2852963002/diff/1/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp#newcode290 third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp:290: // this algorithm with module script. On 2017/05/01 22:27:02, ...
3 years, 7 months ago (2017-05-01 23:16:12 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/2852963002/20001
3 years, 7 months ago (2017-05-02 01:21:17 UTC) #15
kouhei (in TOK)
https://codereview.chromium.org/2852963002/diff/1/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp File third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp (right): https://codereview.chromium.org/2852963002/diff/1/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp#newcode290 third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp:290: // this algorithm with module script. On 2017/05/01 23:16:12, ...
3 years, 7 months ago (2017-05-02 01:21:30 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/443224)
3 years, 7 months ago (2017-05-02 03:06:40 UTC) #18
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/2852963002/20001
3 years, 7 months ago (2017-05-02 03:32:08 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 04:17:29 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/d087434ab42e298587480260ee4c...

Powered by Google App Engine
This is Rietveld 408576698