Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 1feaf5a20c5af166c7f2c865c1c78e257c702bd2..f2120a63b46b84de7b43d31ebea157f98a93396c 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -4170,7 +4170,7 @@ void v8::Object::SetPointerInInternalField(int index, void* value) { |
bool v8::V8::Initialize() { |
- i::Isolate* isolate = i::Isolate::Current(); |
+ i::Isolate* isolate = i::Isolate::UncheckedCurrent(); |
if (isolate != NULL && isolate->IsInitialized()) { |
return true; |
} |
@@ -5063,7 +5063,7 @@ Local<Number> v8::Number::New(double value) { |
Local<Integer> v8::Integer::New(int32_t value) { |
- i::Isolate* isolate = i::Isolate::Current(); |
+ i::Isolate* isolate = i::Isolate::UncheckedCurrent(); |
EnsureInitializedForIsolate(isolate, "v8::Integer::New()"); |
if (i::Smi::IsValid(value)) { |
return Utils::IntegerToLocal(i::Handle<i::Object>(i::Smi::FromInt(value), |
@@ -5341,7 +5341,7 @@ bool V8::IsExecutionTerminating(Isolate* isolate) { |
Isolate* Isolate::GetCurrent() { |
- i::Isolate* isolate = i::Isolate::Current(); |
+ i::Isolate* isolate = i::Isolate::UncheckedCurrent(); |
return reinterpret_cast<Isolate*>(isolate); |
} |