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

Unified Diff: test/mjsunit/wasm/asm-wasm.js

Issue 2693993002: [asm-wasm] Fix continue target of do-while loops (Closed)
Patch Set: Fix comment 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 | « src/asmjs/asm-wasm-builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/asm-wasm.js
diff --git a/test/mjsunit/wasm/asm-wasm.js b/test/mjsunit/wasm/asm-wasm.js
index 126c66d97cee8fee882a5c22babe91ea21275550..6becaad6b706dea14d4b7a8d8c85800a5f3db6af 100644
--- a/test/mjsunit/wasm/asm-wasm.js
+++ b/test/mjsunit/wasm/asm-wasm.js
@@ -410,6 +410,22 @@ function TestContinueInNamedWhile() {
assertWasm(20, TestContinueInNamedWhile);
+function TestContinueInDoWhileFalse() {
+ "use asm";
+
+ function caller() {
+ do {
+ continue;
+ } while (false);
+ return 47;
+ }
+
+ return {caller: caller};
+}
+
+assertWasm(47, TestContinueInDoWhileFalse);
+
+
function TestNot() {
"use asm";
« no previous file with comments | « src/asmjs/asm-wasm-builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698