romgrk / node-gtk

GTK+ bindings for NodeJS (via GObject introspection)
MIT License
493 stars 41 forks source link

fix undefined value not converted to gobject #334

Open CapitaineJSparrow opened 1 year ago

CapitaineJSparrow commented 1 year ago

Fix #333 (confirmed on my end)

I'm not sure about myself, undefined is not in glib constants so I compare the type of value as string. I'm new to this project and it's the first lines of C code I write since decades so may be not the right fix.

CapitaineJSparrow commented 1 year ago

Added unit test, failing on master but working with my PR