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.
Created attachment 98039 [details] Patch
Comment on attachment 98039 [details] Patch Clearing flags on attachment: 98039 Committed r89380: <http://trac.webkit.org/changeset/89380>
All reviewed patches have been landed. Closing bug.