Skip to main content

JS_SetLocaleCallbacks

Function JS_SetLocaleCallbacks 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_SetLocaleCallbacks( _ctx: *mut JsContext, _callbacks: *const c_void, )
Expand description

JS_SetLocaleCallbacks: install a locale implementation.

There is no place to put one — nothing in the engine consults locale callbacks, because there is no Intl and toLocaleString falls back to toString — so the pointer is accepted and dropped. A host that installs one gets the default behaviour, which the README records next to JS_AddIntrinsicIntl.

§Safety

callbacks is ignored.