[Webkit-unassigned] [Bug 241088] New: Promise.race(123); does not throw an error

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 29 20:34:32 PDT 2022


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

            Bug ID: 241088
           Summary: Promise.race(123); does not throw an error
           Product: WebKit
           Version: Safari 15
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: 845043157 at qq.com

Run the program:
    Promise.race(123).then(function(value){
        console.log(value);
    });

Actual results:

(print nothing)

Expected results:
    In V8,it throws an typeerror:"TypeError:number 123 is not iterable  (cannot read property Symbol(Symbol.iterator))".
    In ES6,it writes that Promise.race() needs an iterable parameter.
    So,I think that it may be a bug.

-- 
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/20220530/5ee6bc7e/attachment.htm>


More information about the webkit-unassigned mailing list