Removed Message::GetStackTrace.



git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@262 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent f77b1a87
......@@ -595,12 +595,6 @@ class EXPORT Message {
*/
int GetEndColumn();
/**
* Returns a string stack trace if trace_exceptions is enabled and
* one is available.
*/
Local<String> GetStackTrace();
// TODO(1245381): Print to a string instead of on a FILE.
static void PrintCurrentStackTrace(FILE* out);
};
......
......@@ -246,10 +246,5 @@ void ReportException(v8::TryCatch* try_catch) {
printf("^");
}
printf("\n");
v8::Handle<v8::String> stack_trace = message->GetStackTrace();
if (!stack_trace.IsEmpty()) {
v8::String::Utf8Value stack_trace_str(stack_trace);
printf("%s\n", *stack_trace_str);
}
}
}
......@@ -1261,20 +1261,6 @@ int Message::GetEndColumn() {
}
v8::Local<v8::String> Message::GetStackTrace() {
if (IsDeadCheck("v8::Message::GetStackTrace()"))
return v8::Local<v8::String>();
HandleScope scope;
i::Handle<i::JSObject> data_obj = Utils::OpenHandle(this);
i::Handle<i::Object> trace = GetProperty(data_obj, "stackTrace");
if (trace->IsString()) {
return scope.Close(Utils::ToLocal(i::Handle<i::String>::cast(trace)));
} else {
return Local<String>();
}
}
Local<String> Message::GetSourceLine() {
ON_BAILOUT("v8::Message::GetSourceLine()", return Local<String>());
HandleScope scope;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment