2015-02-03 06:22:23 +00:00
|
|
|
// 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.
|
|
|
|
|
2015-06-05 15:52:04 +00:00
|
|
|
// Flags: --stack-size=100
|
2015-02-03 06:22:23 +00:00
|
|
|
|
|
|
|
"a".replace(/a/g, "");
|
|
|
|
|
2015-06-05 15:52:04 +00:00
|
|
|
var count = 0;
|
2015-02-03 06:22:23 +00:00
|
|
|
function test() {
|
|
|
|
try {
|
|
|
|
test();
|
|
|
|
} catch(e) {
|
2015-06-05 15:52:04 +00:00
|
|
|
if (count < 50) {
|
|
|
|
count++;
|
|
|
|
"b".replace(/(b)/g, new []);
|
|
|
|
}
|
2015-02-03 06:22:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
test();
|
|
|
|
} catch (e) {
|
|
|
|
}
|