Skip to main content

JS_DupAtom

Function JS_DupAtom 

Source
#[unsafe(no_mangle)]
pub extern "C" fn JS_DupAtom(_ctx: *mut JsContext, atom: Atom) -> Atom
Expand description

JS_DupAtom: keep an atom alive.

This engine’s atoms are indices into a table that lives as long as the runtime, so there is no count to raise — but the value has to be valid, which is what the ATOM_NULL check is for.