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

Unified Diff: test/mjsunit/harmony/async-await-loop.js

Issue 2348403002: Reland of Fix async/await memory leak (Closed)
Patch Set: Formatting Created 4 years, 3 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/parsing/parser.cc ('k') | test/mjsunit/harmony/async-await-throw-loop.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/async-await-loop.js
diff --git a/test/mjsunit/harmony/async-await-loop.js b/test/mjsunit/harmony/async-await-loop.js
new file mode 100644
index 0000000000000000000000000000000000000000..7b5f54b0a1ff0bce75582f2f18024cdd25ceeb33
--- /dev/null
+++ b/test/mjsunit/harmony/async-await-loop.js
@@ -0,0 +1,18 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --harmony-async-await --allow-natives-syntax --max-old-space-size 3
+
+let out;
+
+async function longLoop() {
+ for (let i = 0; i < 8000; i++) await undefined;
+ out = 1;
+}
+
+longLoop();
+
+%RunMicrotasks();
+
+assertEquals(1, out);
« no previous file with comments | « src/parsing/parser.cc ('k') | test/mjsunit/harmony/async-await-throw-loop.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698