Reports a memory allocation error.
void JS_ReportOutOfMemory(JSContext *cx); void JS_ReportAllocationOverflow(JSContext *cx); // Added in SpiderMonkey 1.8
||The context in which to report the error.|
The main difference between these two functions is that
try…catch statements in scripts.
JS_ReportAllocationOverflow throws an
InternalError which scripts can catch.