summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug832203.js
blob: d850819b0dc15cbc377342b0aa4636b4a63f4d67 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Don't assert.
gczeal(2,1);
eval("(function() { " + "\
var g1 = newGlobal('same-compartment');\
function test(str, f) {\
    var x = f(eval(str));\
    assertEq(x, f(g1.eval(str)));\
}\
test('new RegExp(\"1\")', function(r) { return assertEq('a1'.search(r), 1); });\
" + " })();");
eval("(function() { " + "" + " })();");