Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index d9113753d03b2b20b1cdb86348bbd1eacdae7969..08ab2ca9cc368e0b8b5701acbac85efed90cfabf 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -352,12 +352,8 @@ Handle<String> RenderCallSite(Isolate* isolate, Handle<Object> object) { |
MessageLocation location; |
if (ComputeLocation(isolate, &location)) { |
Zone zone(isolate->allocator(), ZONE_NAME); |
- std::unique_ptr<ParseInfo> info; |
- if (location.function()->shared()->is_function()) { |
- info.reset(new ParseInfo(&zone, handle(location.function()->shared()))); |
- } else { |
- info.reset(new ParseInfo(&zone, location.script())); |
- } |
+ std::unique_ptr<ParseInfo> info( |
+ new ParseInfo(&zone, handle(location.function()->shared()))); |
if (parsing::ParseAny(info.get())) { |
CallPrinter printer(isolate, |
location.function()->shared()->IsUserJavaScript()); |