Bug 1118107 - Convert ThreadSafeContext -> ExclusiveContext and remove PJS paths in error reporting functions. (r=lth)
This commit is contained in:
@@ -13,11 +13,11 @@ using namespace js;
|
||||
void *
|
||||
TempAllocPolicy::onOutOfMemory(void *p, size_t nbytes)
|
||||
{
|
||||
return static_cast<ThreadSafeContext *>(cx_)->onOutOfMemory(p, nbytes);
|
||||
return static_cast<ExclusiveContext *>(cx_)->onOutOfMemory(p, nbytes);
|
||||
}
|
||||
|
||||
void
|
||||
TempAllocPolicy::reportAllocOverflow() const
|
||||
{
|
||||
js_ReportAllocationOverflow(static_cast<ThreadSafeContext *>(cx_));
|
||||
js_ReportAllocationOverflow(static_cast<ExclusiveContext *>(cx_));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user