| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index a138e39f293e1610868415e4519559a2d0e426b6..58041309b1a148b9796bf909967a32556518fb1c 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -2903,6 +2903,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(),
|
|
|