|
1 // |reftest| skip |
|
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
3 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 //----------------------------------------------------------------------------- |
|
8 var BUGNUMBER = 445818; |
|
9 var summary = 'Do not crash with threads'; |
|
10 var actual = ''; |
|
11 var expect = ''; |
|
12 |
|
13 |
|
14 //----------------------------------------------------------------------------- |
|
15 test(); |
|
16 //----------------------------------------------------------------------------- |
|
17 |
|
18 printBugNumber(BUGNUMBER); |
|
19 printStatus (summary); |
|
20 |
|
21 if (typeof scatter == 'undefined') |
|
22 { |
|
23 print(expect = actual = 'Test skipped. scatter not defined'); |
|
24 } |
|
25 else |
|
26 { |
|
27 var array = [{}, {}, {}, {}]; |
|
28 |
|
29 function test() { |
|
30 for (var i = 0; i != 42*42*42; ++i) { |
|
31 var obj = array[i % array.length]; |
|
32 obj["a"+i] = 1; |
|
33 var tmp = {}; |
|
34 tmp["a"+i] = 2; |
|
35 } |
|
36 } |
|
37 |
|
38 scatter([test, test, test, test]); |
|
39 } |
|
40 |
|
41 reportCompare(expect, actual, summary); |