Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

v8::Local< v8::Context > Context::GetCurrent (  )  [static]

Returns the context that is on the top of the stack.

Definition at line 3050 of file api.cc.

References v8::IsDeadCheck().

                                       {
  if (IsDeadCheck("v8::Context::GetCurrent()")) return Local<Context>();
  i::Handle<i::Object> current = i::Top::global_context();
  if (current.is_null()) return Local<Context>();
  i::Handle<i::Context> context = i::Handle<i::Context>::cast(current);
  return Utils::ToLocal(context);
}


Generated by  Doxygen 1.6.0   Back to index