| Index: src/top.cc
|
| diff --git a/src/top.cc b/src/top.cc
|
| index ace79a960ab55c5ee8536caf5bcbaa50af98cbd1..7e239ec83fd2233655f0d92c412a0f0a95d3e388 100644
|
| --- a/src/top.cc
|
| +++ b/src/top.cc
|
| @@ -603,6 +603,10 @@ bool Top::MayIndexedAccess(JSObject* receiver,
|
| }
|
|
|
|
|
| +const char* Top::kStackOverflowMessage =
|
| + "Uncaught RangeError: Maximum call stack size exceeded";
|
| +
|
| +
|
| Failure* Top::StackOverflow() {
|
| HandleScope scope;
|
| Handle<String> key = Factory::stack_overflow_symbol();
|
| @@ -616,9 +620,7 @@ Failure* Top::StackOverflow() {
|
| // doesn't use ReportUncaughtException to determine the location
|
| // from where the exception occurred. It should probably be
|
| // reworked.
|
| - static const char* kMessage =
|
| - "Uncaught RangeError: Maximum call stack size exceeded";
|
| - DoThrow(*exception, NULL, kMessage);
|
| + DoThrow(*exception, NULL, kStackOverflowMessage);
|
| return Failure::Exception();
|
| }
|
|
|
|
|