Marshalling of GPtrArray broken
[lkundrak@belphegor gjs]$ ./gjs-console -c 'print (imports.gi.NM.Client.new (null).get_devices()[0].get_ip4_config ().get_addresses())'
(lt-gjs-console:22381): libnm-CRITICAL **: nm_ip_address_new: assertion 'family == AF_INET || family == AF_INET6' failed
[boxed prototype of GIName:NM.IPAddress jsobj@0x7f482ec642b0]
[lkundrak@belphegor gjs]$
git bisect that the first broken commit is:
967d6962943cc5101eb9347fe960d605e92493b9 is the first bad commit
commit 967d6962943cc5101eb9347fe960d605e92493b9
Author: Giovanni Campagna <gcampagna@src.gnome.org>
Date: Wed Jul 31 11:15:23 2013 +0200
arg: add support for arrays of flat structures (to JS)
Add support for marshalling from C to JS arrays not of pointer
to structures but of actual structures, as for example used
by gdk_keymap_get_entries_for_keyval().
https://bugzilla.gnome.org/show_bug.cgi?id=704842
:040000 040000 8fd26705ba8a1c3a7c3f11ec5f1261cfde15425d 6f33237d237c36eeef64a7b569325343982450f9 M gi
:040000 040000 1f5b93c515e947620298c83eec10d3751a467fa9 5338090dc2e8b3f5da92b49acc9a4566a4df9234 M installed-tests
[lkundrak@belphegor gjs]$
Edited by Philip Chimento