| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index fcca1548443ca809bb8685efcebcf77039497e60..5521b18a60f8f3b3897567c6a287d35a96c9be1f 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -1492,7 +1492,10 @@ bool Genesis::CompileNative(Isolate* isolate, Vector<const char> name,
|
| // environment has been at least partially initialized. Add a stack check
|
| // before entering JS code to catch overflow early.
|
| StackLimitCheck check(isolate);
|
| - if (check.HasOverflowed()) return false;
|
| + if (check.HasOverflowed()) {
|
| + isolate->StackOverflow();
|
| + return false;
|
| + }
|
|
|
| Handle<Context> context(isolate->context());
|
|
|
| @@ -2969,7 +2972,10 @@ Genesis::Genesis(Isolate* isolate,
|
| // environment has been at least partially initialized. Add a stack check
|
| // before entering JS code to catch overflow early.
|
| StackLimitCheck check(isolate);
|
| - if (check.HasOverflowed()) return;
|
| + if (check.HasOverflowed()) {
|
| + isolate->StackOverflow();
|
| + return;
|
| + }
|
|
|
| // The deserializer needs to hook up references to the global proxy.
|
| // Create an uninitialized global proxy now if we don't have one
|
|
|