summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug663789-2.js
blob: 3e1a608bdaa81f41f89c042bda445bc6114735b6 (plain)
1
2
3
4
5
6
load(libdir + "evalInFrame.js");

o = { toString:function() { return evalInFrame(1, "x") } }
var x = 'C';
var s = "aaaaaaaaaa".replace(/a/g, function() { var x = 'B'; return o });
assertEq(s, "CCCCCCCCCC");