Adding an early return for SpiderMonkey; we only want to run this test in Rhino.

This commit is contained in:
pschwartau%netscape.com 2002-04-10 22:52:26 +00:00
Родитель 301e5af1d6
Коммит 774ab94e93
1 изменённых файлов: 15 добавлений и 4 удалений

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

@ -35,13 +35,18 @@
*
*
* Date: 30 Jan 2002
* Revised: 10 Apr 2002
* SUMMARY: JS should error on |for(i in undefined)|, |for(i in null)|
* See http://bugzilla.mozilla.org/show_bug.cgi?id=121744
*
* Also see the ECMA-262 3rd Edition Final spec:
* > Section 12.6.4 The for-in Statement
* > Section 9.9 ToObject
* ECMA-262 3rd Edition Final spec says such statements should error. See:
* Section 12.6.4 The for-in Statement
* Section 9.9 ToObject
*
* BUT: SpiderMonkey has decided NOT to follow this; it's a bug in the spec.
* See http://bugzilla.mozilla.org/show_bug.cgi?id=131348
*
* So adding an early return for SpiderMonkey; will continue to use for Rhino.
*/
//-----------------------------------------------------------------------------
var UBound = 0;
@ -57,6 +62,12 @@ var actualvalues = [];
var expect= '';
var expectedvalues = [];
/*
* As of 10 Apr 2002, we only want to run this test in Rhino
*/
if (!inRhino())
quit();
status = inSection(1);
expect = TEST_PASSED;
@ -110,7 +121,7 @@ status = inSection(3);
expect = TEST_PASSED;
actual = TEST_FAILED_BADLY;
/*
* Variable names that cannot be looked up gererate ReferenceErrors; however,
* Variable names that cannot be looked up generate ReferenceErrors; however,
* property names like obj.ZZZ that cannot be looked up are set to |undefined|
*
* Therefore, this should indirectly test | for (var i in undefined) |