W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2009

[whatwg] Web Storage: structured clones lead to ambiguity in detecting if a key is set w/ getItem()

From: João Eiras <joaoe@opera.com>
Date: Wed, 23 Sep 2009 23:28:20 +0200
Message-ID: <op.u0qa9ie42q99of@coruscant>
On Wed, 23 Sep 2009 23:03:38 +0200, Erik Arvidsson  
<erik.arvidsson at gmail.com> wrote:

> What are the arguments against adding a containsKey method? This would
> map consistently to the in operator and hasOwnProperty in ES5.
> object.containsKey(name) would be mapped to [[GetOwnProperty]](object,
> name) !== undefined in ES5 meta language. That seems most consistent
> to existing APIs.
>

A containsKey or hasItem, preferably, would still not address the  
ambiguity issue.
Received on Wednesday, 23 September 2009 14:28:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:52 UTC