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([]); |
} |