| Index: src/api.cc
|
| ===================================================================
|
| --- src/api.cc (revision 11005)
|
| +++ src/api.cc (working copy)
|
| @@ -4014,7 +4014,7 @@
|
|
|
|
|
| bool v8::V8::Initialize() {
|
| - i::Isolate* isolate = i::Isolate::UncheckedCurrent();
|
| + i::Isolate* isolate = i::Isolate::Current();
|
| if (isolate != NULL && isolate->IsInitialized()) {
|
| return true;
|
| }
|
| @@ -4907,7 +4907,7 @@
|
|
|
|
|
| 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),
|
| @@ -5185,7 +5185,7 @@
|
|
|
|
|
| Isolate* Isolate::GetCurrent() {
|
| - i::Isolate* isolate = i::Isolate::UncheckedCurrent();
|
| + i::Isolate* isolate = i::Isolate::Current();
|
| return reinterpret_cast<Isolate*>(isolate);
|
| }
|
|
|
|
|