Reports a memory allocation error.
| || ||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.