Issue #1195 - Fix errant use of JSContext in ErrorNotes

We want to ensure that ErrorNotes stays on the main thread to prevent a race condition that was introduced in 1283712 - Part 1. This fixes #1195.
This commit is contained in:
Gaming4JC 2019-07-21 22:31:02 -04:00 • committed by Roy Tam
commit 367fc9432e
3 changed files with 6 additions and 6 deletions

View file

@ -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,