[Webkit-unassigned] [Bug 63087] New: IndexedDB: IDBObjectStore methods should throw TypeError if required arguments are missing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 21 12:45:12 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=63087
Summary: IndexedDB: IDBObjectStore methods should throw
TypeError if required arguments are missing
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pilgrim at chromium.org
CC: fishd at chromium.org, tony at chromium.org,
hans at chromium.org, dgrogan at chromium.org
http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBObjectStore lists required arguments to put(), add(), delete(), get(), createIndex(), index(), and deleteIndex(). As per the WebIDL spec, calling functions with missing required arguments should throw a TypeError. This test calls these functions with no arguments, or with too few arguments, to see what happens.
Expected behavior: throw TypeError
Actual behavior: no exception thrown
Patch included. The fix is to remove the LegacyDefaultOptionalArguments flag from IDBObjectStore.idl, which will force the code generator to check for required arguments and throw TypeError when they are missing.
--
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