Automatic update from web-platform-tests
[defer-import-eval] Expect deadlock in cyclic TLA deferred import test
Per the resolution of the deferred import evaluation proposal
discussion [1], a cycle where import.defer(A) pre-evaluates an
asynchronous dependency B whose top-level `await import(A)` triggers
A's evaluation must deadlock: A waits for B (evaluating-async), B
waits for A, and no promise ever settles. The existing test instead
expected import.defer() to reject with a TypeError, which matched
V8's current (non-conformant) behavior: A's body runs and throws on
accessing the still-evaluating deferred namespace.
Rewrite cyclic-tla-defer-eval.tentative.html to assert the spec
behavior: module B starts evaluating and suspends at its top-level
await, module A's body never runs, and the import.defer() promise
remains pending after draining several macrotask turns.
Also remove cyclic-tla-fn-defer-eval.tentative.html: it exercised the
same cycle (only differing in A exporting a function, which doesn't
affect the deadlock, since it happens before A's body runs) and its
expectation of successful resolution is wrong for the same reason.
[1] https://github.com/tc39/proposal-defer-import-eval/issues/83
Bug: 530457806
Change-Id: I64719d860d2258cba80827eb4d7d80a4725eface
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8037401
Commit-Queue: Caio Lima <caiolima@igalia.com>
Reviewed-by: Nikolaos Papaspyrou <nikolaos@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1670269}
--
wpt-commits: ceaa87c2e174e12b23da8dc244c67cf8e993aa72
wpt-pr: 61607