Value.newObject

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 javascriptcore.context.Context

a #JSCContext

instance void*

an object instance or null

jscClass javascriptcore.class_.Class

the #JSCClass of instance

Return Value

Type: javascriptcore.value.Value

a #JSCValue.