Bug 270687 - JS module importing a previously errored module is unexpectedly executed
Summary: JS module importing a previously errored module is unexpectedly executed
Status: RESOLVED DUPLICATE of bug 242740
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-03-08 02:13 PST by Jon Coppeard
Modified: 2024-07-19 21:42 PDT (History)
4 users (show)

See Also:


Attachments
Testcase (930 bytes, application/zip)
2024-03-08 02:13 PST, Jon Coppeard
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Coppeard 2024-03-08 02:13:45 PST
Created attachment 470244 [details]
Testcase

When a page contains two module scripts that both import a common dependency that throws, the second module script is executed. As I understand it, both module script evaluations should fail (with the same error thrown by the dependency), and neither module body should be executed.

The test case is attached. This works as expected in Firefox and Chrome. Tested on Safari Technology Preview 190.
Comment 1 Radar WebKit Bug Importer 2024-03-15 03:14:13 PDT
<rdar://problem/124682105>
Comment 2 Mark Lam 2024-07-19 21:42:43 PDT
This will be revolved when we fix https://bugs.webkit.org/show_bug.cgi?id=242740.

*** This bug has been marked as a duplicate of bug 242740 ***