Add passing test for bug 826124 which went away with JM. no_r=me.

This commit is contained in:
Jason Orendorff 2013-06-25 17:39:59 -05:00
parent eaed0740bc
commit c64bbbeaf4

View File

@ -0,0 +1,14 @@
var x = {};
function f() { y.prop; }
x.toStr = function () { f(); };
try {
f();
} catch (e) { }
try {
x.toStr();
} catch (e) { }
try {
function f() { which = 2; }
x.toStr();
} catch (e) { which = 1; }
assertEq(which, 2);