| Index: src/top.cc
|
| diff --git a/src/top.cc b/src/top.cc
|
| index f44de7ad68d41c308f27fa9674925d91d08294ad..e078ee948bc84925d549a84cb5da84a2f3bb51d5 100644
|
| --- a/src/top.cc
|
| +++ b/src/top.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -572,6 +572,7 @@ Failure* Isolate::ReThrow(MaybeObject* exception, MessageLocation* location) {
|
|
|
| // Set the exception being re-thrown.
|
| set_pending_exception(exception);
|
| + if (exception->IsFailure()) return exception->ToFailureUnchecked();
|
| return Failure::Exception();
|
| }
|
|
|
|
|