| Index: src/d8.cc
|
| ===================================================================
|
| --- src/d8.cc (revision 9006)
|
| +++ src/d8.cc (working copy)
|
| @@ -740,6 +740,7 @@
|
| // Initialize the global objects
|
| Handle<ObjectTemplate> global_template = CreateGlobalTemplate();
|
| Persistent<Context> context = Context::New(NULL, global_template);
|
| + ASSERT(!context.IsEmpty());
|
| Context::Scope scope(context);
|
|
|
| #ifndef V8_SHARED
|
| @@ -1236,8 +1237,6 @@
|
| thread->Join();
|
| delete thread;
|
| }
|
| -
|
| - OnExit();
|
| #endif // V8_SHARED
|
| return 0;
|
| }
|
| @@ -1289,6 +1288,10 @@
|
|
|
| V8::Dispose();
|
|
|
| +#ifndef V8_SHARED
|
| + OnExit();
|
| +#endif // V8_SHARED
|
| +
|
| return result;
|
| }
|
|
|
|
|