temp_cx

Function temp_cx 

Source
pub unsafe fn temp_cx() -> JSContext
Expand description

Get the current JSContext for the running thread.

§Safety

Using this function is unsafe because no other JSContext may be constructed apart from initial ones, but because we are still working on passing down &mut SafeJSContext references, this function is provided as temporary workaround/placeholder.

As such all it’s usages will need to be eventually replaced with proper &mut SafeJSContext references.