Closed Bug 11363 Opened 27 years ago Closed 26 years ago

nsIEnumerator::IsDone semantics make scriptability awkward

Categories

(Core :: XPCOM, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: rginda, Assigned: scc-obsolete)

Details

In nsIEnumerator.idl the IsDone method specifies no out param, and (presumably... is this correct?) relies on the implementor to return NS_ERROR_FAILURE to signify that the enumeration has reached an endpoint. This would translate poorly if the interface were used from JavaScript. (ie. JS would have to try { e.IsDone() } catch(){}, instead of do while (!e.IsDone()){}
Assignee: dp → scc
Status: NEW → ASSIGNED
Target Milestone: M10
Target Milestone: M10 → M11
Moving to M11 per today's bug triage.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
|nsIEnumerator| interface is deprecated. Now we use the |nsISimpleEnumerator| interface which does not have this evil. Since |nsIEnumerator| is going away, we don't need to fix this bug.
You need to log in before you can comment on or make changes to this bug.