| Index: src/compiler.cc
|
| ===================================================================
|
| --- src/compiler.cc (revision 944)
|
| +++ src/compiler.cc (working copy)
|
| @@ -101,7 +101,6 @@
|
| // Check for parse errors.
|
| if (lit == NULL) {
|
| ASSERT(Top::has_pending_exception());
|
| - Top::ReportPendingMessages();
|
| return Handle<JSFunction>::null();
|
| }
|
|
|
| @@ -119,7 +118,6 @@
|
| // Check for stack-overflow exceptions.
|
| if (code.is_null()) {
|
| Top::StackOverflow();
|
| - Top::ReportPendingMessages();
|
| return Handle<JSFunction>::null();
|
| }
|
|
|
| @@ -208,6 +206,8 @@
|
| }
|
| }
|
|
|
| + if (result.is_null()) Top::ReportPendingMessages();
|
| +
|
| return result;
|
| }
|
|
|
| @@ -272,7 +272,6 @@
|
| // Check for parse errors.
|
| if (lit == NULL) {
|
| ASSERT(Top::has_pending_exception());
|
| - Top::ReportPendingMessages();
|
| return false;
|
| }
|
|
|
| @@ -290,7 +289,6 @@
|
| // Check for stack-overflow exception.
|
| if (code.is_null()) {
|
| Top::StackOverflow();
|
| - Top::ReportPendingMessages();
|
| return false;
|
| }
|
|
|
|
|