object_instance_props_to_g_parameters should do more check on argv
Submitted by Guillaume Desmottes
Link to original bug (#686864)
Description
I just wasted one day of my life debugging a very weird bug in some js code. Turned out I wrote "new Clutter.BindConstraint(stage, Clutter.BindCoordinate.SIZE, 0);" instead of "Clutter.BindConstraint.new(stage, Clutter.BindCoordinate.SIZE, 0);" (yeah I suck at Javascript...).
All this pain could have been avoided if gjs would have raised an exception rather than silently accepting invalid arguments.
object_instance_props_to_g_parameters should raise an exception if:
- argc > 1
- argv[0] is not dictionnary