OLD | NEW |
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
4 * | 4 * |
5 * The contents of this file are subject to the Mozilla Public License Version | 5 * The contents of this file are subject to the Mozilla Public License Version |
6 * 1.1 (the "License"); you may not use this file except in compliance with | 6 * 1.1 (the "License"); you may not use this file except in compliance with |
7 * the License. You may obtain a copy of the License at | 7 * the License. You may obtain a copy of the License at |
8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
9 * | 9 * |
10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 try | 59 try |
60 { | 60 { |
61 function v() | 61 function v() |
62 { | 62 { |
63 var meg=""; | 63 var meg=""; |
64 var r=""; | 64 var r=""; |
65 var i; | 65 var i; |
66 print("don't interrupt the script. let it go."); | 66 print("don't interrupt the script. let it go."); |
67 for(i=0;i<1024*1024;i++) meg += "v"; | 67 for(i=0;i<1024*1024;i++) meg += "v"; |
68 for(i=0;i<1024/4;i++) r += meg; | 68 for(i=0;i<1024/8;i++) r += meg; |
69 var o={f1: r, f2: r, f3: r,f4: r,f5: r, f6: r, f7: r, f8: r,f9: r}; | 69 var o={f1: r, f2: r, f3: r,f4: r,f5: r, f6: r, f7: r, f8: r,f9: r}; |
70 print('done obj'); | 70 print('done obj'); |
71 var rr=r.toSource(); | 71 var rr=r.toSource(); |
72 print('done toSource()'); | 72 print('done toSource()'); |
73 } | 73 } |
74 | 74 |
75 v(); | 75 v(); |
76 } | 76 } |
77 catch(ex) | 77 catch(ex) |
78 { | 78 { |
79 expect = 'InternalError: script stack space quota is exhausted'; | 79 expect = 'InternalError: script stack space quota is exhausted'; |
80 actual = ex + ''; | 80 actual = ex + ''; |
81 print(actual); | 81 print(actual); |
82 } | 82 } |
83 | 83 |
84 reportCompare(expect, actual, summary); | 84 reportCompare(expect, actual, summary); |
85 | 85 |
86 exitFunc ('test'); | 86 exitFunc ('test'); |
87 } | 87 } |
OLD | NEW |