Bug 270687

Summary: JS module importing a previously errored module is unexpectedly executed
Product: WebKit Reporter: Jon Coppeard <jcoppeard>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ashvayka, mark.lam, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Testcase none

Jon Coppeard
Reported 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.
Attachments
Testcase (930 bytes, application/zip)
2024-03-08 02:13 PST, Jon Coppeard
no flags
Radar WebKit Bug Importer
Comment 1 2024-03-15 03:14:13 PDT
Mark Lam
Comment 2 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 ***
Note You need to log in before you can comment on or make changes to this bug.