[Webkit-unassigned] [Bug 270687] New: JS module importing a previously errored module is unexpectedly executed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 8 02:13:45 PST 2024


https://bugs.webkit.org/show_bug.cgi?id=270687

            Bug ID: 270687
           Summary: JS module importing a previously errored module is
                    unexpectedly executed
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jcoppeard at mozilla.com

Created attachment 470244

  --> https://bugs.webkit.org/attachment.cgi?id=470244&action=review

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240308/6366a741/attachment-0001.htm>


More information about the webkit-unassigned mailing list