[Webkit-unassigned] [Bug 160032] New: Adding JSObjectGetClass method

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 21 10:44:16 PDT 2016


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

            Bug ID: 160032
           Summary: Adding JSObjectGetClass method
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: danilo.cesar at collabora.co.uk

Basically I ended up in the following situation:

I need to create a new Object (obj2) the same type of another one (obj1).
Ideally I would do:

JSClassRef clas = JSObjectGetClass(obj2);
JSObjectRef obj2 = JSObjectMake(context, clas, NULL);


However the current API set doesn't let me get the class used to create the original object.
This patch is about this.

Also, I can see this same API being used to create/update constructors for an object (specially if the constructor wasn't defined in the original object when it was first created).

-- 
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/20160721/1833e098/attachment-0001.html>


More information about the webkit-unassigned mailing list