[Webkit-unassigned] [Bug 62288] IndexedDB createObjectStore should throw if key path contains a space

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 28 20:57:59 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=62288





--- Comment #24 from Kentaro Hara <haraken at google.com>  2011-07-28 20:57:59 PST ---
OK. In this patch, I would like to follow Mark's idea about what exception should be thrown (, since this is the patch mainly intended to fix the keypath parser).

One question: For createIndex(), as Mark indicated, it is possible to throw TypeError from the IDL layer. However, for createObjectStore(), how can we throw TypeError from the IDL layer? Since the key path of createObjectStore() is passed as an object property (i.e. createObjectStore("name", {keypath: "foo.bar", ...})), I am afraid that there is no way to know the value of keypath and throw TypeError from the IDL layer. (Also, as we discussed, for now there seems to be no way to throw TypeError from C++ code...)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list