Chromium Code Reviews

Unified Diff: src/isolate.cc

Issue 688803003: Build fix after r25015 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 7700ca5f7380cd5954a15774334778406da8c88d..a49eee6e86a6a09de2541e39d555605694a06002 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -1051,8 +1051,10 @@ void Isolate::ComputeLocationFromStackTrace(MessageLocation* target,
Handle<Object> exception) {
*target = MessageLocation(Handle<Script>(heap_.empty_script()), -1, -1);
+ if (!exception->IsJSObject()) return;
Handle<Name> key = factory()->stack_trace_symbol();
- Handle<Object> property = JSObject::GetDataProperty(exception, key);
+ Handle<Object> property =
+ JSObject::GetDataProperty(Handle<JSObject>::cast(exception), key);
if (!property->IsJSArray()) return;
Handle<JSArray> simple_stack_trace = Handle<JSArray>::cast(property);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine