Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 0e098fd1f0f9a12d81b227b7c4c1a0380c9bead6..12864066c4e333d3f9c7f7bb84b1164474a77171 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -256,8 +256,9 @@ RUNTIME_FUNCTION(Runtime_RenderCallSite) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 0); |
MessageLocation location; |
- isolate->ComputeLocation(&location); |
- if (location.start_pos() == -1) return isolate->heap()->empty_string(); |
+ if (!isolate->ComputeLocation(&location)) { |
+ return isolate->heap()->empty_string(); |
+ } |
Zone zone; |
base::SmartPointer<ParseInfo> info( |