W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 18 Apr 2012 18:45:12 +0000
To: public-script-coord@w3.org
Message-Id: <E1SKZsO-0007WN-OE@jessica.w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC