function: Use whole value array
function: Use whole value array

In mozjs31, it will not be possible to do pointer fiddling with the
AutoValueVector passed into JS_CallFunctionValue(), because that function
will take the whole vector instead of a vp array plus number of args.

Therefore, we restructure gjs_callback_closure() so that vfuncs pop the
first element of the vector back into the this_object root, instead of
manipulating the pointer passed to JS_CallFunctionValue().

https://bugzilla.gnome.org/show_bug.cgi?id=742249

endlessm/gjs,endlessm/gjs,endlessm/gjs,endlessm/gjs,endlessm/gjs