Correct Regression test for bug 164697, See bug 321669

This commit is contained in:
bob%bclary.com 2005-12-28 06:34:58 +00:00
Родитель 9cf7411fbd
Коммит 5813f8ba72
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -48,7 +48,12 @@ expect = 'true';
runtest('{}', 'Object');
runtest('new Object()', 'Object');
runtest('function (){}', 'Function');
// see https://bugzilla.mozilla.org/show_bug.cgi?id=321669
// for why this test is not contained in a function.
actual = (function (){}).__proto__ == Function.prototype;
reportCompare('true', actual+'',
'(function (){}).__proto__ == Function.prototype');
runtest('new Function(";")', 'Function');
runtest('[]', 'Array');