Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: src/debug/debug.cc

Issue 1584023003: [debugger] tentative fix for crash in FindSharedFunctionInfoInScript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.cc
diff --git a/src/debug/debug.cc b/src/debug/debug.cc
index 955f86618213482fcee80aa69fc321ddf69ef27a..bd45b71551f94a08c6e1049fd8dc64cfba96731c 100644
--- a/src/debug/debug.cc
+++ b/src/debug/debug.cc
@@ -1300,6 +1300,7 @@ Handle<Object> Debug::FindSharedFunctionInfoInScript(Handle<Script> script,
closure = finder.ResultClosure();
shared = finder.Result();
}
+ if (shared == NULL) break;
HandleScope scope(isolate_);
if (closure == NULL) {
if (!Compiler::CompileDebugCode(handle(shared))) break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698