Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 93eacb292fdafd938cd1c141d6514d05724c98ea..8e1f8b7ceb9938cbb1ccb444ce265398b604577d 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13007,7 +13007,7 @@ void Script::SetEvalOrigin(Handle<Script> script, |
// position, but store it as negative value for lazy translation. |
StackTraceFrameIterator it(script->GetIsolate()); |
if (!it.done() && it.is_javascript()) { |
- FrameSummary summary = FrameSummary::GetFirst(it.javascript_frame()); |
+ FrameSummary summary = FrameSummary::GetTop(it.javascript_frame()); |
script->set_eval_from_shared(summary.AsJavaScript().function()->shared()); |
script->set_eval_from_position(-summary.code_offset()); |
return; |