blob: b58f0ac50dee9e10d198f7121309654f33a5f85b (
plain)
1
2
3
4
5
|
// |jit-test| skip-if: !('oomTest' in this)
oomTest(() => assertEq("foobar\xff5baz\u1200".search(/bar\u0178\d/i), 3));
oomTest(() => assertEq((/(?!(?!(?!6)[\Wc]))/i).test(), false));
oomTest(() => assertEq((/bar\u0178\d/i).exec("foobar\xff5baz\u1200") != null, true));
|