зеркало из https://github.com/mozilla/pjs.git
JavaScript Test - change eval tests to work around anonfunfix, bug 356247
This commit is contained in:
Родитель
278eab5aa6
Коммит
f61662abdd
|
@ -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);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче