Reviewers: danno,

Description:
Ensure default isolate is present in Context::New().

TEST=Run chrome with --single-process.


Please review this at https://chromiumcodereview.appspot.com/9949008/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/api.cc


Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index ee106a9e9316ec3b734b2735cd3b1ff39f15ef0b..5757158fe19f845a82e14ed36094606d3eeb0818 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");


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to