| Index: src/mksnapshot.cc
|
| diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc
|
| index a3665e969df2db02ddcedf2de3e06a2aa4797efa..abfe69397b0998927fd7d2c0a498de38f64780a2 100644
|
| --- a/src/mksnapshot.cc
|
| +++ b/src/mksnapshot.cc
|
| @@ -318,11 +318,12 @@ int main(int argc, char** argv) {
|
| "\nException thrown while compiling natives - see above.\n\n");
|
| exit(1);
|
| }
|
| + Isolate* isolate = context->GetIsolate();
|
| if (i::FLAG_extra_code != NULL) {
|
| context->Enter();
|
| // Capture 100 frames if anything happens.
|
| V8::SetCaptureStackTraceForUncaughtExceptions(true, 100);
|
| - HandleScope scope;
|
| + HandleScope scope(isolate);
|
| const char* name = i::FLAG_extra_code;
|
| FILE* file = i::OS::FOpen(name, "rb");
|
| if (file == NULL) {
|
| @@ -375,7 +376,7 @@ int main(int argc, char** argv) {
|
| context->Exit();
|
| }
|
| // Make sure all builtin scripts are cached.
|
| - { HandleScope scope;
|
| + { HandleScope scope(isolate);
|
| for (int i = 0; i < i::Natives::GetBuiltinsCount(); i++) {
|
| i::Isolate::Current()->bootstrapper()->NativesSourceLookup(i);
|
| }
|
|
|