[Webkit-unassigned] [Bug 195206] New: [GLib] Returning G_TYPE_OBJECT from a constructor does not work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 1 03:25:16 PST 2019


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

            Bug ID: 195206
           Summary: [GLib] Returning G_TYPE_OBJECT from a constructor does
                    not work
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com

Created attachment 363321

  --> https://bugs.webkit.org/attachment.cgi?id=363321&action=review

jscobj.c: Example code to reproduce the issue

When a constructor is installed with jsc_class_add_constructor(), and the
return type is specified as G_TYPE_OBJECT, methods do not seem to receive
the object returned from the constructor correctly when invoked.

For the small example that I am attaching, the output is:

  (process:9038): GLib-GIO-CRITICAL **: 12:39:24.868: g_file_get_path: assertion 'G_IS_FILE (file)' failed
  **
  ERROR:jscobj.c:54:main: assertion failed: (jsc_value_is_string (result))
  zsh: abort (core dumped)  ./jscobj

-- 
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/20190301/98ccfd47/attachment.html>


More information about the webkit-unassigned mailing list