diff options
author | Moonchild <moonchild@palemoon.org> | 2019-07-22 08:23:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-22 08:23:47 +0000 |
commit | bb3e62fe1eb46df5278e814cc196104d9b6e4ba6 (patch) | |
tree | 1338185485218dd1d6f722f29171d22f224a614f /js | |
parent | 8cd6a5a3361c155114c5dc9fedbee18e3e2720a7 (diff) | |
parent | 04ac84ff56b9780335560319a8ecd3e8b510874e (diff) | |
download | uxp-bb3e62fe1eb46df5278e814cc196104d9b6e4ba6.tar.gz |
Merge pull request #1196 from g4jc/feed_spidermonkey
Issue #1195 - Fix errant use of JSContext in ErrorNotes
Diffstat (limited to 'js')
-rw-r--r-- | js/src/jsapi.cpp | 8 | ||||
-rw-r--r-- | js/src/jscntxt.cpp | 2 | ||||
-rw-r--r-- | js/src/jscntxt.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp index 7cc7bd0352..84a3155872 100644 --- a/js/src/jsapi.cpp +++ b/js/src/jsapi.cpp @@ -6326,7 +6326,7 @@ JSErrorNotes::~JSErrorNotes() } static UniquePtr<JSErrorNotes::Note> -CreateErrorNoteVA(JSContext* cx, +CreateErrorNoteVA(ExclusiveContext* cx, const char* filename, unsigned lineno, unsigned column, JSErrorCallback errorCallback, void* userRef, const unsigned errorNumber, @@ -6357,7 +6357,7 @@ JSErrorNotes::addNoteASCII(ExclusiveContext* cx, { va_list ap; va_start(ap, errorNumber); - auto note = CreateErrorNoteVA(cx->asJSContext(), filename, lineno, column, errorCallback, userRef, + auto note = CreateErrorNoteVA(cx, filename, lineno, column, errorCallback, userRef, errorNumber, ArgumentsAreASCII, ap); va_end(ap); @@ -6376,7 +6376,7 @@ JSErrorNotes::addNoteLatin1(ExclusiveContext* cx, { va_list ap; va_start(ap, errorNumber); - auto note = CreateErrorNoteVA(cx->asJSContext(), filename, lineno, column, errorCallback, userRef, + auto note = CreateErrorNoteVA(cx, filename, lineno, column, errorCallback, userRef, errorNumber, ArgumentsAreLatin1, ap); va_end(ap); @@ -6395,7 +6395,7 @@ JSErrorNotes::addNoteUTF8(ExclusiveContext* cx, { va_list ap; va_start(ap, errorNumber); - auto note = CreateErrorNoteVA(cx->asJSContext(), filename, lineno, column, errorCallback, userRef, + auto note = CreateErrorNoteVA(cx, filename, lineno, column, errorCallback, userRef, errorNumber, ArgumentsAreUTF8, ap); va_end(ap); diff --git a/js/src/jscntxt.cpp b/js/src/jscntxt.cpp index 441b006d6a..e505a4b341 100644 --- a/js/src/jscntxt.cpp +++ b/js/src/jscntxt.cpp @@ -748,7 +748,7 @@ js::ExpandErrorArgumentsVA(ExclusiveContext* cx, JSErrorCallback callback, } bool -js::ExpandErrorArgumentsVA(JSContext* cx, JSErrorCallback callback, +js::ExpandErrorArgumentsVA(ExclusiveContext* cx, JSErrorCallback callback, void* userRef, const unsigned errorNumber, const char16_t** messageArgs, ErrorArgumentsType argumentsType, diff --git a/js/src/jscntxt.h b/js/src/jscntxt.h index c949d18fd8..8be3376cf0 100644 --- a/js/src/jscntxt.h +++ b/js/src/jscntxt.h @@ -622,7 +622,7 @@ ExpandErrorArgumentsVA(ExclusiveContext* cx, JSErrorCallback callback, JSErrorReport* reportp, va_list ap); extern bool -ExpandErrorArgumentsVA(JSContext* cx, JSErrorCallback callback, +ExpandErrorArgumentsVA(ExclusiveContext* cx, JSErrorCallback callback, void* userRef, const unsigned errorNumber, const char16_t** messageArgs, ErrorArgumentsType argumentsType, |