regress-crbug-450960.js 413 Bytes
Newer Older
1 2 3 4
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5
// Flags: --stack-size=100
6 7 8

"a".replace(/a/g, "");

9
var count = 0;
10 11 12 13
function test() {
   try {
     test();
   } catch(e) {
14 15 16 17
     if (count < 50) {
       count++;
       "b".replace(/(b)/g, new []);
     }
18 19 20 21 22 23 24
   }
}

try {
  test();
} catch (e) {
}