Commit 5bd4f9dd authored by ishell's avatar ishell Committed by Commit bot

Fixed SEGV that could happen if an exception is thrown during bootstrapping.

BUG=chromium:487974
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#28453}
parent 178c0f5f
......@@ -1495,6 +1495,7 @@ bool Genesis::CompileNative(Isolate* isolate, Vector<const char> name,
Handle<SharedFunctionInfo> function_info = Compiler::CompileScript(
source, script_name, 0, 0, false, false, Handle<Object>(), context, NULL,
NULL, ScriptCompiler::kNoCompileOptions, NATIVES_CODE, false);
if (function_info.is_null()) return false;
DCHECK(context->IsNativeContext());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment