Make JSErrorNotes Single Threaded.

This commit is contained in:
Fedor 2019-09-05 20:06:09 +03:00
parent 0e2b6e8609
commit 165084547d
2 changed files with 6 additions and 6 deletions

View File

@ -6350,7 +6350,7 @@ CreateErrorNoteVA(ExclusiveContext* cx,
}
bool
JSErrorNotes::addNoteASCII(JSContext* cx,
JSErrorNotes::addNoteASCII(ExclusiveContext* cx,
const char* filename, unsigned lineno, unsigned column,
JSErrorCallback errorCallback, void* userRef,
const unsigned errorNumber, ...)
@ -6369,7 +6369,7 @@ 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, ...)
@ -6388,7 +6388,7 @@ 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, ...)

View File

@ -5439,15 +5439,15 @@ class JSErrorNotes
~JSErrorNotes();
// Add an note to the given position.
bool addNoteASCII(JSContext* cx,
bool addNoteASCII(js::ExclusiveContext* cx,
const char* filename, unsigned lineno, unsigned column,
JSErrorCallback errorCallback, void* userRef,
const unsigned errorNumber, ...);
bool addNoteLatin1(JSContext* cx,
bool addNoteLatin1(js::ExclusiveContext* cx,
const char* filename, unsigned lineno, unsigned column,
JSErrorCallback errorCallback, void* userRef,
const unsigned errorNumber, ...);
bool addNoteUTF8(JSContext* cx,
bool addNoteUTF8(js::ExclusiveContext* cx,
const char* filename, unsigned lineno, unsigned column,
JSErrorCallback errorCallback, void* userRef,
const unsigned errorNumber, ...);