[Webkit-unassigned] [Bug 156939] New: Autogenerated IDBFactory.open() does not allow `undefined` for the second argument

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 22 16:56:45 PDT 2016


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

            Bug ID: 156939
           Summary: Autogenerated IDBFactory.open() does not allow
                    `undefined` for the second argument
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Bindings
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: beidson at apple.com

Autogenerated IDBFactory.open() does not allow `undefined` for the second argument

The IDL looks like this:
    [CallWith=ScriptExecutionContext, RaisesExceptionWithMessage] IDBOpenDBRequest open(DOMString name, [EnforceRange] optional unsigned long long version);

The generated code does the following:
1 - Checks to see if there's exactly 1 argument.
2 - If so, it calls IDBFactory::open(ScriptExecutionContext&, const String& name, ExceptionCodeWithMessage&);
3 - If there is more than one argument, it gets the second argument and converts it to a uint64_t with a range check.
4 - If the conversion failed, it throws an exception for the EnforceRange - "NaN is outside the range 0..2^64-1"

Instead, at step 3, it should allow an explicit "undefined" and call the first form of IDBFactory::open() from step #2

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160422/38f18ee9/attachment-0001.html>


More information about the webkit-unassigned mailing list