[Webkit-unassigned] [Bug 32918] New: setTimeout() & setInterval() provide no diagnostics on invalid parameters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 24 09:36:54 PST 2009


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

           Summary: setTimeout() & setInterval() provide no diagnostics on
                    invalid parameters
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Trivial
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: caseq at google.com


setTimeout() & setInterval() fail silently in case first argument is not a
function or string. Other implementations (FF, IE) throw an exception.

setTimeout(function(){ alert('a') }, 10); // works as intended
setTimeout(10, function(){ alert('a') }); // makes no sense but no diagnostics
provided

FF 3.5.6:
Error: useless setTimeout call (missing quotes around argument?)

IE 8.0:
Message: Invalid argument.

-- 
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