Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index bf95773d2046874be68ae7f6a2a23f66fd0eafc0..a9aa664696ea4d15e05703adec2ebdbd8f7c1f4d 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12985,7 +12985,7 @@ void Script::SetEvalOrigin(Handle<Script> script, |
StackTraceFrameIterator it(script->GetIsolate()); |
if (!it.done() && it.is_javascript()) { |
FrameSummary summary = FrameSummary::GetFirst(it.javascript_frame()); |
- script->set_eval_from_shared(summary.function()->shared()); |
+ script->set_eval_from_shared(summary.AsJavaScript().function()->shared()); |
script->set_eval_from_position(-summary.code_offset()); |
return; |
} |