Skip to content

Commit

Permalink
Rhino has also decided to conform with SpiderMonkey on this test. Add…
Browse files Browse the repository at this point in the history
…ing early return for Rhino as well.
  • Loading branch information
pschwartau%netscape.com committed Jul 14, 2002
1 parent adaf7bd commit acbfef9
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions js/tests/ecma_3/Statements/regress-121744.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,31 @@
*
* Date: 30 Jan 2002
* Revised: 10 Apr 2002
* Revised: 14 July 2002
*
* SUMMARY: JS should error on |for(i in undefined)|, |for(i in null)|
* See http://bugzilla.mozilla.org/show_bug.cgi?id=121744
*
* ECMA-262 3rd Edition Final spec says such statements should error. See:
* Section 12.6.4 The for-in Statement
* Section 9.9 ToObject
*
* 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.
* UPDATE: Rhino has also decided not to follow the spec on this.
* See http://bugzilla.mozilla.org/show_bug.cgi?id=136893
*
|----------------------------------------------------------------------|
| |
| So for now, adding an early return for this test so it won't be run. |
| |
|----------------------------------------------------------------------|
*
*/
//-----------------------------------------------------------------------------
var UBound = 0;
Expand All @@ -63,10 +77,9 @@ var expect= '';
var expectedvalues = [];

/*
* As of 10 Apr 2002, we only want to run this test in Rhino
* AS OF 14 JULY 2002, DON'T RUN THIS TEST IN EITHER RHINO OR SPIDERMONKEY -
*/
if (!inRhino())
quit();
quit();


status = inSection(1);
Expand Down

0 comments on commit acbfef9

Please sign in to comment.