blob: 3889edc9c82fd75cae6475e5c912c83d7f8d7205 (
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) assertEq('a1'.search(r), 1));\
" + " })();");
eval("(function() { " + "" + " })();");
|