Source code
Revision control
Copy as Markdown
Other Tools
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");