"... has invalid __iterator__ value ..." message is broken

RESOLVED INVALID

Status

()

--
minor
RESOLVED INVALID
12 years ago
6 years ago

People

(Reporter: sync2d, Unassigned)

Tracking

({regression})

Trunk
x86
Windows XP
regression
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
$ cat invalid-iterator.txt
var exp = 'foo has invalid __iterator__ value "bar"', act;
try {
  var foo={__iterator__:'bar'}; for(var baz in foo);
} catch(e) {
  act = e.message;
}
print("expect: " + exp + "\nactual: " + act);

CVS 2006-09-18 GMT:
expect: foo has invalid __iterator__ value "bar"
actual: foo has invalid __iterator__ value "bar"

CVS 2006-09-19 GMT:
expect: foo has invalid __iterator__ value "bar"
actual: "bar" has invalid __iterator__ value "bar"

regression from bug 346642.
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=%2Fmozilla%2Fjs&sortby=Date&date=explicit&mindate=1158537600&maxdate=1158624000&cvsroot=%2Fcvsroot
We just don't bother with non-object __iterator__. No error at all.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.