pub unsafe extern "C-unwind" fn JSGlobalContextSetName(
ctx: JSGlobalContextRef,
name: JSStringRef,
)
Available on crate features
JSBase
and JSContextRef
only.Expand description
Sets the name exposed when inspecting a context.
Parameter ctx
: The JSGlobalContext that you want to name.
Parameter name
: The name to set on the context.
ยงSafety
ctx
must be a valid pointer.name
must be a valid pointer.