blob: 5551b98655e284983549fc04a3a1b0f97b71fe8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// |jit-test| skip-if: !('interruptRegexp' in this) || getBuildConfiguration('pbl')
// skip testing under PBL because interruption of regex engine here seems to
// depend on GC behavior and is hard to reproduce reliably.
var s0 = "A".repeat(10*1024);
var interrupted = false;
gczeal(0);
setInterruptCallback(() => {
interrupted = true;
startgc(7,'shrinking');
return true;
});
assertEq(interruptRegexp(/a(bc|bd)/, s0), null);
assertEq(interrupted, true);
|