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

Unified Diff: test/mjsunit/regress/regress-crbug-518748.js

Issue 1284683004: [d8 Workers] Add max worker count, throw an exception if too many. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/d8.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-518748.js
diff --git a/test/mjsunit/regress/regress-crbug-503698.js b/test/mjsunit/regress/regress-crbug-518748.js
similarity index 56%
copy from test/mjsunit/regress/regress-crbug-503698.js
copy to test/mjsunit/regress/regress-crbug-518748.js
index 415d1bc81be5ac46fb358ce8ec681b1e5c276e07..bbbf4d60197821e4b95a47f886b2e3861ccf4484 100644
--- a/test/mjsunit/regress/regress-crbug-503698.js
+++ b/test/mjsunit/regress/regress-crbug-518748.js
@@ -2,8 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --invoke-weak-callbacks
-
if (this.Worker) {
- var __v_6 = new Worker('');
+ function f(a) {
+ assertThrows(function() {
+ for (var i = 0; new Worker('onmessage = function() {};'); i++) a[i] = i;
Michael Starzinger 2015/08/10 22:01:23 The regression test is kind of brittle, because if
binji 2015/08/10 22:09:47 Workers are not reaped until the main thread is fi
Michael Starzinger 2015/08/10 22:14:41 Ah, got it. My bad, I was assuming the {workers} l
+ });
+ }
+ f([]);
}
« no previous file with comments | « src/d8.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698