[ES6 modules] Add WPT for loading cyclic module graph w/ slow imports

Desktop / Chromium - Kouhei Ueno [chromium.org] - 14 June 2017 20:12 EDT

This CL adds a layout test demonstrating the currently broken cycle handling, which currently fails on ToT.

If a cyclic module graph node contained other edges that are not part of the cycle, the graph does not load reliably. (To be more specific, the graph does not load unless the other edges complete loading before we instantiate the cycle nodes).

We expect to have the root cause fixed in the spec change PR: https://github.com/whatwg/html/pull/2674

Bug: 594639 Change-Id: I3cf8a640a73083ad612c96fc4bbd0f01e00f6e46 Reviewed-on: https://chromium-review.googlesource.com/535413

d43d1a1 [ES6 modules] Add WPT for loading cyclic module graph w/ slow imports
third_party/WebKit/LayoutTests/TestExpectations | 1 +
.../scripting-1/the-script-element/module/slow-cycle.html | 11 +++++++++++
.../the-script-element/module/slow-module-graph-a.js | 3 +++
.../the-script-element/module/slow-module-graph-b.js | 1 +
4 files changed, 16 insertions(+)

Upstream: git.chromium.org


  • Share