Chromium Code Reviews| Index: src/execution.cc |
| diff --git a/src/execution.cc b/src/execution.cc |
| index 8942fb31284ba39cbed3df07b23b904bfe897d44..d8a5cba9ad66c04012b49c9b9777483b67c42435 100644 |
| --- a/src/execution.cc |
| +++ b/src/execution.cc |
| @@ -211,6 +211,9 @@ Handle<Object> Execution::TryCall(Handle<JSFunction> func, |
| Isolate* isolate = Isolate::Current(); |
| ASSERT(isolate->has_pending_exception()); |
| ASSERT(isolate->external_caught_exception()); |
| + if (isolate->is_out_of_memory() && !isolate->ignore_out_of_memory()) { |
| + V8::FatalProcessOutOfMemory(NULL); |
|
Michael Starzinger
2012/12/04 09:42:07
Pass some short message to V8::FatalProcessOutOfMe
|
| + } |
| if (isolate->pending_exception() == |
| isolate->heap()->termination_exception()) { |
| result = isolate->factory()->termination_exception(); |