| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 524b71dbf2ab6626b58705112301afa11073555c..586fd8613a5a4b9dcaa5b47bfa4d56e65d804c7b 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -367,12 +367,14 @@
|
| base::ElapsedTimer timer;
|
| timer.Start();
|
| Isolate::Scope isolate_scope(isolate);
|
| + internal_isolate->set_creating_default_snapshot(true);
|
| internal_isolate->Init(NULL);
|
| Persistent<Context> context;
|
| i::Snapshot::Metadata metadata;
|
| {
|
| HandleScope handle_scope(isolate);
|
| Local<Context> new_context = Context::New(isolate);
|
| + internal_isolate->set_creating_default_snapshot(false);
|
| context.Reset(isolate, new_context);
|
| if (custom_source != NULL) {
|
| metadata.set_embeds_script(true);
|
|
|