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