| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index ee9e03f119a79e431c887f18e37804d9c9991021..23a7821df1f373dd8d33b054a35f625b9b3de1ff 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -2893,6 +2893,16 @@ Local<Integer> Value::ToInteger() const {
|
| }
|
|
|
|
|
| +#ifdef V8_ENABLE_CHECKS
|
| +void i::Internals::CheckInitialized(v8::Isolate* external_isolate) {
|
| + i::Isolate* isolate = reinterpret_cast<i::Isolate*>(external_isolate);
|
| + ApiCheck(isolate != NULL && isolate->IsInitialized() && !i::V8::IsDead(),
|
| + "v8::internal::Internals::CheckInitialized()",
|
| + "Isolate is not initialized or V8 has died");
|
| +}
|
| +#endif
|
| +
|
| +
|
| void External::CheckCast(v8::Value* that) {
|
| if (IsDeadCheck(i::Isolate::Current(), "v8::External::Cast()")) return;
|
| ApiCheck(Utils::OpenHandle(that)->IsExternal(),
|
|
|