Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 90d5532af37a2e981bf3626a22bbf78392cc3f70..fdf3961a5fb43e29c151995d81850e9cf38f32bf 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -318,6 +318,7 @@ RUNTIME_FUNCTION(Runtime_FormatMessageString) { |
CONVERT_ARG_HANDLE_CHECKED(JSObject, call_site_obj, 0); \ |
Handle<String> result; \ |
CallSite call_site(isolate, call_site_obj); \ |
+ RUNTIME_ASSERT(call_site.IsValid()) \ |
return RETURN(call_site.NAME(), isolate); \ |
} |