[wasm] Do not try start linking if the compilation failed.

BUG=chromium:614291
LOG=N
R=titzer@chromium.org, bradnelson@chromium.org

Review-Url: https://codereview.chromium.org/2009823002
Cr-Commit-Position: refs/heads/master@{#36503}
This commit is contained in:
ahaas 2016-05-25 02:26:28 -07:00 committed by Commit bot
parent 667188b1a7
commit f768e53cd8

View File

@ -774,6 +774,7 @@ MaybeHandle<JSObject> WasmModule::Instantiate(
if (!FinishCompilation(isolate, this, ffi, results, instance, code_table,
thrower, factory, module_env, code_stats, desc)) {
instance.js_object = Handle<JSObject>::null();
return instance.js_object;
}
// Patch all direct call sites.