[Webkit-unassigned] [Bug 144093] New: Implement @isConstructor bytecode intrinsic and bytecode for that

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 23 02:41:07 PDT 2015


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

            Bug ID: 144093
           Summary: Implement @isConstructor bytecode intrinsic and
                    bytecode for that
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: utatane.tea at gmail.com

Currently, `typeof XXX === "function"` is used (in Array.from)
However, it's not accuate to the spec. According to the spec, this should be queried by `isConstructor` abstract operation.
While `isConstructor` queries the given object has `[[Construct]]`, `typeof thisObj === "function"` queries the given object has `[[Call]]`.

To fix that, we introduce a new bytecode op_is_constructor and use it with bytecode intrinsic @isConstructor.

-- 
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/20150423/fdcba822/attachment.html>


More information about the webkit-unassigned mailing list