Support GObject properties with GByteArray type
It seems that we are missing a special case in gjs_value_to_g_value_internal()
in value.cpp to support this. (We have a similar special case in arg.cpp, which is pretty much parallel to this one.) If a GValue expects a GByteArray boxed object, then we should accept a Uint8Array, so that you can do something like this:
obj.byteArrayProp = ByteArray.fromString('👾');
Currently this throws an exception:
TypeError: Object 0x7f2a52af8e20 is not a subclass of GObject_Boxed, it's a Uint8Array
There is a test for this at the end of testGIMarshalling.js. To verify the fix, un-disable the test and check that it passes correctly.