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: --stack-size=70 | 5 // Flags: --stack-size=100 |
6 | 6 |
7 "a".replace(/a/g, ""); | 7 "a".replace(/a/g, ""); |
8 | 8 |
| 9 var count = 0; |
9 function test() { | 10 function test() { |
10 try { | 11 try { |
11 test(); | 12 test(); |
12 } catch(e) { | 13 } catch(e) { |
13 "b".replace(/(b)/g, new []); | 14 if (count < 50) { |
| 15 count++; |
| 16 "b".replace(/(b)/g, new []); |
| 17 } |
14 } | 18 } |
15 } | 19 } |
16 | 20 |
17 try { | 21 try { |
18 test(); | 22 test(); |
19 } catch (e) { | 23 } catch (e) { |
20 } | 24 } |
OLD | NEW |