Index: webkit/port/bindings/v8/v8_proxy.cpp |
=================================================================== |
--- webkit/port/bindings/v8/v8_proxy.cpp (revision 4069) |
+++ webkit/port/bindings/v8/v8_proxy.cpp (working copy) |
@@ -788,22 +788,22 @@ |
ReportUnsafeAccessTo(target, REPORT_LATER); |
} |
+static void HandleFatalErrorInV8() |
+{ |
+ // TODO: We temporarily deal with V8 internal error situations |
+ // such as out-of-memory by crashing the renderer. |
+ CRASH(); |
+} |
+ |
static void ReportFatalErrorInV8(const char* location, const char* message) |
{ |
// V8 is shutdown, we cannot use V8 api. |
// The only thing we can do is to disable JavaScript. |
// TODO: clean up V8Proxy and disable JavaScript. |
printf("V8 error: %s (%s)\n", message, location); |
+ HandleFatalErrorInV8(); |
} |
-static void HandleFatalErrorInV8() |
-{ |
- // TODO: We temporarily deal with V8 internal error situations |
- // such as out-of-memory by crashing the renderer. |
- CRASH(); |
-} |
- |
- |
V8Proxy::~V8Proxy() |
{ |
clearForClose(); |