[Bug 12287] Restrict sequence<T> to operation argument types and return types

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12287

--- Comment #4 from Cameron McCormack <cam@mcc.id.au> 2011-05-23 21:41:30 UTC ---
The undesirable behaviour is that a new Array object would be created every
time you access the property.  Simple looping over a sequence attribute, like

  interface Blah {
    readonly attribute sequence<long> numbers;
  };

  for (var i = 0; i < myBlah.numbers.length; i++) {
    doSomethingWith(myBlah.numbers[i]);
  }

would end up doing a lot of wasted work.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Monday, 23 May 2011 21:41:32 UTC