Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 3c54b4bdb2e7988ae8f57c559b746b55e9e0da16..bb9ba2350af2e258dab1a0097275d1443245a785 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -4287,6 +4287,7 @@ Persistent<Context> v8::Context::New( |
v8::ExtensionConfiguration* extensions, |
v8::Handle<ObjectTemplate> global_template, |
v8::Handle<Value> global_object) { |
+ i::Isolate::EnsureDefaultIsolate(); |
i::Isolate* isolate = i::Isolate::Current(); |
EnsureInitializedForIsolate(isolate, "v8::Context::New()"); |
LOG_API(isolate, "Context::New"); |