Value.this

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 jsc_context_register_class().

Parameters

context Context

a #JSCContext

instance_ void*

an object instance or %NULL

jscClass Class

the #JSCClass of @instance

Return Value

a #JSCValue.

Throws

ConstructionException GTK+ fails to create the object.

Meta