[Webkit-unassigned] [Bug 209124] New: Promise.{all, allSettled, race} does not always close iterator

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Mar 15 10:06:33 PDT 2020


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

            Bug ID: 209124
           Summary: Promise.{all,allSettled,race} does not always close
                    iterator
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Trivial
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shvaikalesh at gmail.com

Test case:
  delete Promise.resolve;

  Promise.all({
    [Symbol.iterator]() { return this; },
    return() { console.log("iterator closed"); },
  });

Expected:
  Promise rejected with TypeError, "iterator closed" logged

Actual:
  Promise rejected with TypeError, no logs

ECMA262: https://tc39.es/ecma262/#sec-promise.all (step 6.a)
Test262: https://test262.report/browse/built-ins/Promise/all/invoke-resolve-get-error-close.js

-- 
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/20200315/ec618af3/attachment.htm>


More information about the webkit-unassigned mailing list