mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Make JSErrorNotes Single Threaded
This commit is contained in:
parent
c2bd1ca0bc
commit
6072c7290b
2 changed files with 9 additions and 9 deletions
|
|
@ -6350,14 +6350,14 @@ CreateErrorNoteVA(JSContext* cx,
|
|||
}
|
||||
|
||||
bool
|
||||
JSErrorNotes::addNoteASCII(JSContext* cx,
|
||||
JSErrorNotes::addNoteASCII(ExclusiveContext* cx,
|
||||
const char* filename, unsigned lineno, unsigned column,
|
||||
JSErrorCallback errorCallback, void* userRef,
|
||||
const unsigned errorNumber, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, errorNumber);
|
||||
auto note = CreateErrorNoteVA(cx, filename, lineno, column, errorCallback, userRef,
|
||||
auto note = CreateErrorNoteVA(cx->asJSContext(), filename, lineno, column, errorCallback, userRef,
|
||||
errorNumber, ArgumentsAreASCII, ap);
|
||||
va_end(ap);
|
||||
|
||||
|
|
@ -6369,14 +6369,14 @@ JSErrorNotes::addNoteASCII(JSContext* cx,
|
|||
}
|
||||
|
||||
bool
|
||||
JSErrorNotes::addNoteLatin1(JSContext* cx,
|
||||
JSErrorNotes::addNoteLatin1(ExclusiveContext* cx,
|
||||
const char* filename, unsigned lineno, unsigned column,
|
||||
JSErrorCallback errorCallback, void* userRef,
|
||||
const unsigned errorNumber, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, errorNumber);
|
||||
auto note = CreateErrorNoteVA(cx, filename, lineno, column, errorCallback, userRef,
|
||||
auto note = CreateErrorNoteVA(cx->asJSContext(), filename, lineno, column, errorCallback, userRef,
|
||||
errorNumber, ArgumentsAreLatin1, ap);
|
||||
va_end(ap);
|
||||
|
||||
|
|
@ -6388,14 +6388,14 @@ JSErrorNotes::addNoteLatin1(JSContext* cx,
|
|||
}
|
||||
|
||||
bool
|
||||
JSErrorNotes::addNoteUTF8(JSContext* cx,
|
||||
JSErrorNotes::addNoteUTF8(ExclusiveContext* cx,
|
||||
const char* filename, unsigned lineno, unsigned column,
|
||||
JSErrorCallback errorCallback, void* userRef,
|
||||
const unsigned errorNumber, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, errorNumber);
|
||||
auto note = CreateErrorNoteVA(cx, filename, lineno, column, errorCallback, userRef,
|
||||
auto note = CreateErrorNoteVA(cx->asJSContext(), filename, lineno, column, errorCallback, userRef,
|
||||
errorNumber, ArgumentsAreUTF8, ap);
|
||||
va_end(ap);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue