[Webkit-unassigned] [Bug 224315] New: Throw within queueMicrotask callbacks are not reported

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 7 19:29:49 PDT 2021


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

            Bug ID: 224315
           Summary: Throw within queueMicrotask callbacks are not reported
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: huxpro at gmail.com

Created attachment 425470

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

Safari 13 does nothing

Webkit does nothing if a callback queued via `queueMicrotask` throw.

The spec (https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing) specified:

> The queueMicrotask(callback) method must queue a microtask to invoke callback, and if callback throws an exception, report the exception.

The expected behavior is similar to `throw` within `setTimeout` callback.

-- 
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/20210408/772e0132/attachment.htm>


More information about the webkit-unassigned mailing list