[wasm] Avoid crashing if parsing fails in asm -> wasm.
R=ahaas@chromium.org LOG=Y BUG=chromium:575369 Review URL: https://codereview.chromium.org/1577813002 Cr-Commit-Position: refs/heads/master@{#33206}
This commit is contained in:
parent
56579ce480
commit
1ab97e901b
@ -132,7 +132,10 @@ v8::internal::wasm::WasmModuleIndex* TranslateAsmModule(i::ParseInfo* info) {
|
||||
info->set_allow_lazy_parsing(false);
|
||||
info->set_toplevel(true);
|
||||
|
||||
CHECK(i::Compiler::ParseAndAnalyze(info));
|
||||
if (!i::Compiler::ParseAndAnalyze(info)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
info->set_literal(
|
||||
info->scope()->declarations()->at(0)->AsFunctionDeclaration()->fun());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user