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

Unified Diff: test/mjsunit/wasm/wasm-module-builder.js

Issue 2630553002: [wasm] Enforce that function bodies end with the \"end\" opcode. (Closed)
Patch Set: Update inspector tests Created 3 years, 11 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
Index: test/mjsunit/wasm/wasm-module-builder.js
diff --git a/test/mjsunit/wasm/wasm-module-builder.js b/test/mjsunit/wasm/wasm-module-builder.js
index 453e1ff90b3c4ded62543ee5eeca61e6077870b7..65ff1d0d8ed9d6c0744dea2f67b90a2006f04f41 100644
--- a/test/mjsunit/wasm/wasm-module-builder.js
+++ b/test/mjsunit/wasm/wasm-module-builder.js
@@ -98,6 +98,8 @@ class WasmFunctionBuilder {
addBody(body) {
this.body = body;
+ // Automatically add the end for the function block to the body.
+ body.push(kExprEnd);
return this;
}

Powered by Google App Engine
This is Rietveld 408576698