[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


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

            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

http://www.ecma-international.org/ecma-262/6.0/#sec-promise.resolve

the following lines of the spec text:

25.4.4.5.a 
25.4.4.5.c

Indicate

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