Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 9da3346d7940cebbb49d60813c04d56a4466260f..5912449169889c18e3064ca21338949bfb1cb0cc 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -115,7 +115,6 @@ static void DefaultFatalErrorHandler(const char* location, |
} |
- |
static FatalErrorCallback& GetFatalErrorHandler() { |
if (exception_behavior == NULL) { |
exception_behavior = DefaultFatalErrorHandler; |
@@ -124,6 +123,10 @@ static FatalErrorCallback& GetFatalErrorHandler() { |
} |
+void i::FatalProcessOutOfMemory(const char* location) { |
+ i::V8::FatalProcessOutOfMemory(location, false); |
+} |
+ |
// When V8 cannot allocated memory FatalProcessOutOfMemory is called. |
// The default fatal error handler is called and execution is stopped. |