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

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

Issue 2707203003: Merged: Squashed multiple commits. (Closed)
Patch Set: TypeCheckFallThru() on end. Created 3 years, 10 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 | « test/mjsunit/wasm/unreachable-validation.js ('k') | test/unittests/wasm/function-body-decoder-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 186c8609a94a91984b952e497feb1d8f0c704cfa..df26fed12a22184282a4bc6dc44fe58b9ad0daa2 100644
--- a/test/mjsunit/wasm/wasm-module-builder.js
+++ b/test/mjsunit/wasm/wasm-module-builder.js
@@ -97,6 +97,9 @@ class WasmFunctionBuilder {
}
addBody(body) {
+ for (let b of body) {
+ if (typeof b != 'number') throw new Error("invalid body");
+ }
this.body = body;
// Automatically add the end for the function block to the body.
body.push(kExprEnd);
« no previous file with comments | « test/mjsunit/wasm/unreachable-validation.js ('k') | test/unittests/wasm/function-body-decoder-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698