| JSJHashNumber JS_DLL_CALLBACK jsj_HashJavaObject | ( | const void * | key, | |
| void * | env | |||
| ) |
| intN JS_DLL_CALLBACK jsj_JavaObjectComparator | ( | const void * | v1, | |
| const void * | v2, | |||
| void * | arg | |||
| ) |
| const JSErrorFormatString* jsj_GetErrorMessage | ( | void * | userRef, | |
| const char * | locale, | |||
| const uintN | errorNumber | |||
| ) |
| JSJavaThreadState* jsj_EnterJava | ( | JSContext * | cx, | |
| JNIEnv ** | envp | |||
| ) |
| void jsj_ExitJava | ( | JSJavaThreadState * | jsj_env | ) |
| JSJavaThreadState* jsj_SetJavaJSJEnv | ( | JSJavaThreadState * | java_jsj_env | ) |
The static global the_java_jsj_env overrides using JSJ_callbacks->map_js_context_to_jsj_thread, which maps native threads to JSJavaThreadStates. This isn't appropriate when Java calls JavaScript, as there can be a many to one mapping from Java threads to native threads.
| JSErrorFormatString jsj_ErrorFormatString[JSJ_Err_Limit] |
Initial value:
{
#if JSJ_HAS_DFLT_MSG_STRINGS
#define MSG_DEF(name, number, count, format) \
{ format, count } ,
#else
#define MSG_DEF(name, number, count, format) \
{ NULL, count } ,
#endif
#include "jsj.msg"
#undef MSG_DEF
}
1.5.6