| Index: src/execution.cc
|
| diff --git a/src/execution.cc b/src/execution.cc
|
| index e43ea65fc6420acb7ce882b062c34e574151bb44..fa4116730aaa82ebe811510fef479271fd5345ba 100644
|
| --- a/src/execution.cc
|
| +++ b/src/execution.cc
|
| @@ -127,7 +127,7 @@ static Handle<Object> Invoke(bool is_construct,
|
| ASSERT(*has_pending_exception == Isolate::Current()->has_pending_exception());
|
| if (*has_pending_exception) {
|
| isolate->ReportPendingMessages();
|
| - if (isolate->pending_exception() == Failure::OutOfMemoryException()) {
|
| + if (isolate->pending_exception()->IsOutOfMemory()) {
|
| if (!isolate->ignore_out_of_memory()) {
|
| V8::FatalProcessOutOfMemory("JS", true);
|
| }
|
|
|