Cannot throw error from callback
@xclaesse
Submitted by Xavier Claessens Link to original bug (#729015)
Description
I've got a callback function with a GError** as last arg and it returns an object or NULL if error is set. When I implement that callback in JS code and I do:
throw new Error("plop");
The the gjs console prints:
(gjs:29398): Gjs-WARNING **: JS ERROR: Error: plop
And in the C code the the return value of the callback is NULL but the error is NULL as well.
Note that the gir looks correct to me: