[w3c/IndexedDB] Issues with key and keyPath usage (#308)

In particular `key` should not return an ECMAScript value in prose and `keyPath` shouldn't return a new array each time.

Originally from @bzbarsky in https://github.com/heycam/webidl/issues/823#issuecomment-554862858:

> Now there are definitely some specs that seem to think that `any` means "an ES value".  The `IDBCursor.prototype.key` getter certainly seems to think that...
>
> On the other hand, the `IDBObjectStore.prototype.keyPath` getter does the expected thing and treats `any` as a union of IDL values; in this case it assigns either a `DOMString` of a `sequence<DOMString>` to it... but of course that's actually wrong, because it should be returning the same thing each time in the sequence case, so the spec steps there are kinda wrong and you have to ignore them and do something else.  :(

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/308

Received on Monday, 18 November 2019 08:24:55 UTC