[Webkit-unassigned] [Bug 63085] New: IndexedDB: keyrange methods should throw TypeError if required arguments are missing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 21 12:21:04 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=63085
Summary: IndexedDB: keyrange 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-IDBKeyRange states that only(), lowerBound(), upperBound(), and bound() have required arguments. As per the WebIDL spec, calling these functions without the required arguments should throw a TypeError. This test calls these functions without arguments, or with too few arguments, and checks that they throw properly.
Expected behavior: throw TypeError
Actual behavior: does not throw, creates IDBKeyRange object
Patch included. The fix is to remove the LegacyDefaultOptionalArguments flag from the IDBKeyRange.idl. This will force the code generator to check for required arguments and throw TypeError if 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