Function script::dom::bindings::import::module::jsapi::NewSymbol

source ·
pub unsafe extern "C" fn NewSymbol(
    cx: *mut JSContext,
    description: Handle<*mut JSString>,
) -> *mut Symbol
Expand description

Create a new Symbol with the given description. This function never returns a Symbol that is in the Runtime-wide symbol registry.

If description is null, the new Symbol’s [[Description]] attribute is undefined.