JavaScript Test - change eval tests to work around anonfunfix, bug 356247

This commit is contained in:
bclary%bclary.com 2007-05-31 19:24:01 +00:00
Родитель 278eab5aa6
Коммит f61662abdd
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -59,7 +59,7 @@ function test()
actual = f + ''; actual = f + '';
compareSource(expect, actual, summary); compareSource(expect, actual, summary);
var g = eval(f + ''); var g = eval('(' + f + ')');
actual = g + ''; actual = g + '';
compareSource(expect, actual, summary); compareSource(expect, actual, summary);
@ -68,7 +68,7 @@ function test()
actual = f + ''; actual = f + '';
compareSource(expect, actual, summary); compareSource(expect, actual, summary);
g = eval(f + ''); g = eval('(' + f + ')');
actual = g + ''; actual = g + '';
compareSource(expect, actual, summary); compareSource(expect, actual, summary);