Skip to content

GObject: Support checking if a primitive is instance of an Interface

Marco Trevisan requested to merge 3v1n0/gjs:handle-interface-instanceof into master

When using instanceof against an interface we assume that the instance we pass is an object, but in case that's not the case, we're failing while calling GObject.type_is_a instead of just returning false.

So, only perform such test in case we're handling an Object.

Add tests checking this case.

Fixes: #464 (closed)

Merge request reports