--- sbbs/include/mozilla/js/jsexn.h 2018/04/24 16:41:23 1.1.1.1 +++ sbbs/include/mozilla/js/jsexn.h 2018/04/24 16:42:09 1.1.1.2 @@ -46,6 +46,8 @@ JS_BEGIN_EXTERN_C +extern JSClass js_ErrorClass; + /* * Initialize the exception constructor/prototype hierarchy. */ @@ -53,18 +55,6 @@ extern JSObject * js_InitExceptionClasses(JSContext *cx, JSObject *obj); /* - * String constants naming the exception classes. - */ -extern const char js_Error_str[]; -extern const char js_InternalError_str[]; -extern const char js_EvalError_str[]; -extern const char js_RangeError_str[]; -extern const char js_ReferenceError_str[]; -extern const char js_SyntaxError_str[]; -extern const char js_TypeError_str[]; -extern const char js_URIError_str[]; - -/* * Given a JSErrorReport, check to see if there is an exception associated with * the error number. If there is, then create an appropriate exception object, * set it as the pending exception, and set the JSREPORT_EXCEPTION flag on the @@ -97,6 +87,10 @@ js_ReportUncaughtException(JSContext *cx extern JSErrorReport * js_ErrorFromException(JSContext *cx, jsval exn); +extern const JSErrorFormatString * +js_GetLocalizedErrorMessage(JSContext* cx, void *userRef, const char *locale, + const uintN errorNumber); + JS_END_EXTERN_C #endif /* jsexn_h___ */