Function JSValueMakeSymbol

Source
pub unsafe extern "C" fn JSValueMakeSymbol(
    ctx: JSContextRef,
    description: JSStringRef,
) -> JSValueRef
Expand description

Creates a JavaScript value of the symbol type.

  • ctx: The execution context to use.
  • description: The JSStringRef to assign to the newly created JSValueRef.

Returns a JSValueRef of the symbol type, whose description matches the one provided.