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

Unified Diff: src/wasm/wasm-module.cc

Issue 2009823002: [wasm] Do not try start linking if the compilation failed. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/wasm/wasm-module.cc
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
index 9e3f0a98e0d5df1f31b39bf73e30b469f653fbce..89bc5b7f032c3c4f53dd7160168ac67d2715d8e8 100644
--- a/src/wasm/wasm-module.cc
+++ b/src/wasm/wasm-module.cc
@@ -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.
« 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