[Webkit-unassigned] [Bug 195574] [GLib] Returning G_TYPE_OBJECT from a method does not work
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 20 14:19:24 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=195574
Michael Catanzaro <mcatanzaro at igalia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mcatanzaro at igalia.com
Attachment #364658|review? |review+
Flags| |
--- Comment #11 from Michael Catanzaro <mcatanzaro at igalia.com> ---
Comment on attachment 364658
--> https://bugs.webkit.org/attachment.cgi?id=364658
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=364658&action=review
> Source/JavaScriptCore/API/glib/JSCClass.cpp:735
> + * Note that the value returned by @callback must be fully transferred. In case of boxed types, you could use
fully transferred -> transfer full
could -> should?
(Ditto for copypaste below)
> Source/JavaScriptCore/API/glib/JSCClass.cpp:738
> + * with jsc_value_new_object() that receives the copy as instance parameter.
as an instance
(Ditto for copypaste below)
> Tools/TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:1628
> +static GString* getGStringCopyWillRaise(GString* str)
> +{
> + return static_cast<GString*>(g_boxed_copy(G_TYPE_GSTRING, str));
> +}
I don't understand, why does this cause a JS exception?
--
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/20190320/b3019ad4/attachment.html>
More information about the webkit-unassigned
mailing list