diff --git a/js/tests/js1_5/Regress/regress-245795.js b/js/tests/js1_5/Regress/regress-245795.js index ac91d263bb5..0a20ec98897 100755 --- a/js/tests/js1_5/Regress/regress-245795.js +++ b/js/tests/js1_5/Regress/regress-245795.js @@ -51,9 +51,15 @@ if (typeof uneval != 'undefined') b=function() {}; } - expect = ' function a() { b = (function () {}); } '; + var r = / function a\(\) \{ b = \(?function \(\) \{\s*\}\)?; \} /; eval(uneval(a)); - actual = a.toString().replace(/[ \n]+/g, ' '); + + var v = a.toString().replace(/[ \n]+/g, ' '); + + printStatus("[" + v + "]"); + + expect = true; + actual = r.test(v); reportCompare(expect, actual, summary); }