Value.newObject
javascriptcore.value.Value newObject(javascriptcore.context.Context context, void * instance = null, javascriptcore.class_.Class jscClass = null)Create a new #JSCValue from instance. If instance is null a new empty object is created. When instance is provided, jsc_class must be provided too. jsc_class takes ownership of instance that will be freed by the #GDestroyNotify passed to [javascriptcore.context.Context.registerClass].
Parameters
context | a #JSCContext |
instance | an object instance or null |
jscClass | the #JSCClass of instance |
Returns
a #JSCValue.