|
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 = 446169; |
|
9 var summary = 'Do not assert: Thin_GetWait(tl->owner) in thread-safe build'; |
|
10 var actual = 'No Crash'; |
|
11 var expect = 'No Crash'; |
|
12 |
|
13 var array = []; |
|
14 for (var i = 0; i != 100*1000; i += 2) { |
|
15 array[i] = i; |
|
16 array[i+1] = i; |
|
17 } |
|
18 |
|
19 var src = array.join(';x'); |
|
20 |
|
21 function f() { |
|
22 new Function(src); |
|
23 } |
|
24 |
|
25 //----------------------------------------------------------------------------- |
|
26 test(); |
|
27 //----------------------------------------------------------------------------- |
|
28 |
|
29 function test() |
|
30 { |
|
31 enterFunc ('test'); |
|
32 printBugNumber(BUGNUMBER); |
|
33 printStatus (summary); |
|
34 |
|
35 if (typeof scatter == 'function') |
|
36 { |
|
37 scatter([f, f, f, f]); |
|
38 } |
|
39 else |
|
40 { |
|
41 print('Test skipped. Requires thread-safe build with scatter function.'); |
|
42 } |
|
43 reportCompare(expect, actual, summary); |
|
44 |
|
45 exitFunc ('test'); |
|
46 } |
|
47 |
|
48 |