Bug 509098 - modify test due to removal of JS_HAS_LVALUE_RETURN support.

This commit is contained in:
Bob Clary 2009-08-20 12:07:59 -07:00
Родитель 0603b4d7c9
Коммит e5292019cd
4 изменённых файлов: 11 добавлений и 37 удалений

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

@ -239,38 +239,3 @@ catch(ex)
actual = 'error';
}
reportCompare(expect, actual, summary + section);
if (typeof it != 'undefined')
{
printStatus('Shell tests: it.item() can return a reference type');
expect = 'foo';
section = ': for(it.item(0) in b);';
printStatus(section);
try
{
eval('for (it.item(0) in b);');
actual = it.item(0);
}
catch(ex)
{
printStatus(ex+'');
actual = 'error';
}
reportCompare(expect, actual, summary + section);
expect = 'foo';
section = ': function foo(){for(it.item(0) in b);};foo();';
printStatus(section);
try
{
eval('function foo(){ for (it.item(0) in b);};foo();');
actual = it.item(0);
}
catch(ex)
{
printStatus(ex+'');
actual = 'error';
}
reportCompare(expect, actual, summary + section);
}

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

@ -55,7 +55,7 @@ function test()
var f = function () { (delete r(s)).t = a; }
expect = 'function () { (delete r(s)).t = a; }';
expect = 'function () { (r(s), true).t = a; }';
actual = f + '';
compareSource(expect, actual, summary);

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

@ -71,7 +71,7 @@ function test()
compareSource(expect, actual, summary);
f = function() { delete(p(3)) }
expect = 'function() { delete p(3); }';
expect = 'function() { p(3), true; }';
actual = f + '';
compareSource(expect, actual, summary);

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

@ -150,3 +150,12 @@ js1_7/regress/regress-350387.js
# bug 457618
js1_7/decompilation/regress-349634.js
js1_7/extensions/regress-353214-02.js
# bug 509098
js1_5/decompilation/regress-352453.js
js1_5/decompilation/regress-350670.js
js1_5/Regress/regress-350253.js
js1_5/Regress/regress-462292.js
js1_5/Regress/regress-319391.js
js1_7/decompilation/regress-352079.js
js1_7/decompilation/regress-352272.js
js1_8_1/decompilation/regress-352022.js