[debugger] tentative fix for crash in FindSharedFunctionInfoInScript.

R=ulan@chromium.org
BUG=chromium:567937
LOG=N

Review URL: https://codereview.chromium.org/1584023003

Cr-Commit-Position: refs/heads/master@{#33298}
This commit is contained in:
yangguo 2016-01-14 06:45:25 -08:00 committed by Commit bot
parent 8c04c33f28
commit f58ed31a1b

View File

@ -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;