bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

test-collection tests fail with exception "[object StopIteration]"



Add-on SDK
8 years ago
8 years ago


(Reporter: myk, Unassigned)


Firefox Tracking Flags

(Not tracked)




8 years ago
On trunk, test-collection tests fail with the bizarre-looking exception "[object StopIteration]" (just that, nothing else).

Collection iterators are defined like this:

  this.__iterator__ = function Collection___iterator__() {
    let items = array.slice();
    for (let i = 0; i < items.length; i++)
      yield items[i];

And used like this:

  for (let item in coll) {
    test.assertEqual(item, array[numItems], "Items should be equal");

Bug 606573 could be related, not sure.

Mardak: what do you think?


8 years ago
Duplicate of this bug: 607125

Comment 2

8 years ago
(In reply to comment #0)
> Bug 606573 could be related, not sure.
> Mardak: what do you think?

mrbkap or gal probably know better. My bug was about Iterator(), but one comment included "Also freeze StopIteration and StopIteration.prototype" so this may be related.

Comment 3

8 years ago
Hmm, the tests all work with the latest tracemonkey branch build.

Comment 4

8 years ago
peterv thinks this is caused by bug 606573, so setting dependency accordingly.
Depends on: 606573

Comment 5

8 years ago
Indeed, this seems to have been fixed by the landing of the fix for bug 606573.
Last Resolved: 8 years ago
Resolution: --- → FIXED

Comment 6

8 years ago
The Add-on SDK is no longer a Mozilla Labs experiment and has become a big enough project to warrant its own Bugzilla product, so the "Add-on SDK" product has been created for it, and I am moving its bugs to that product.

To filter bugmail related to this change, filter on the word "looptid".
Component: Jetpack SDK → General
Product: Mozilla Labs → Add-on SDK
QA Contact: jetpack-sdk → general
You need to log in before you can comment on or make changes to this bug.