| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 1feaf5a20c5af166c7f2c865c1c78e257c702bd2..3946f4fa64145dd86ff8f6e6e4456d75d026d984 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -4170,6 +4170,7 @@ void v8::Object::SetPointerInInternalField(int index, void* value) {
|
|
|
|
|
| bool v8::V8::Initialize() {
|
| + i::Isolate::EnsureDefaultIsolate();
|
| i::Isolate* isolate = i::Isolate::Current();
|
| if (isolate != NULL && isolate->IsInitialized()) {
|
| return true;
|
| @@ -4190,6 +4191,7 @@ void v8::V8::SetReturnAddressLocationResolver(
|
|
|
|
|
| bool v8::V8::Dispose() {
|
| + i::Isolate::EnsureDefaultIsolate();
|
| i::Isolate* isolate = i::Isolate::Current();
|
| if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(),
|
| "v8::V8::Dispose()",
|
|
|