OLD | NEW |
---|---|
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Flags: --invoke-weak-callbacks | |
6 | |
7 if (this.Worker) { | 5 if (this.Worker) { |
8 var __v_6 = new Worker(''); | 6 function f(a) { |
7 assertThrows(function() { | |
8 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
| |
9 }); | |
10 } | |
11 f([]); | |
9 } | 12 } |
OLD | NEW |