[Webkit-unassigned] [Bug 149477] New: PromiseSubclass.resolve does not "cast" correctly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 22 15:21:39 PDT 2015


            Bug ID: 149477
           Summary: PromiseSubclass.resolve does not "cast" correctly
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Major
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: stefan.penner at gmail.com


the following lines of the spec text:


class PromiseSubclass extends Promise { }
PromiseSubclass.resolve(Promise.resolve()).constructor === PromiseSubclass;

Unfortunately, today the following is true:

PromiseSubclass.resolve(Promise.resolve()).constructor === Promise;

Related patch to V8 -> https://codereview.chromium.org/1362773002

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150922/be2c5549/attachment.html>

More information about the webkit-unassigned mailing list