[Bug 16767] Allow user objects for Array[] types

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16767

--- Comment #3 from Boris Zbarsky <bzbarsky@mit.edu> 2012-04-18 18:45:11 UTC ---
Are these objects dictionaries or arrays:

  { length: '1', '0': 'foo' }

  { length: { valueOf: function() { return 1; } }, '0': 'foo' }

?

"JavaScripty" behavior would be that if you try to use them as arrays they act
like arrays.  But that's hard to reconcile with the whole "dictionaries are a
hashtable" thing unless you just disallow overloads that can take a dictionary
or an array altogether, right?

-- 
Configure bugmail: https://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 Wednesday, 18 April 2012 18:45:15 UTC