[Webkit-unassigned] [Bug 223532] Uncaught Exception: RangeError: Array size is not a small enough positive integer.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 19 12:39:02 PDT 2021


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

BJ Burg <bburg at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bburg at apple.com

--- Comment #1 from BJ Burg <bburg at apple.com> ---
Relevant code: 

        let millisecondStartTime = Math.round(startTime * 1000);
        let millisecondEndTime = Math.round(endTime * 1000);
        let millisecondDuration = millisecondEndTime - millisecondStartTime;

        let samples = new Array(millisecondDuration);

For some reason `endTime` is 0 here, so the overall duration is negative and the Array constructor throws.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210319/d0b4669c/attachment.htm>


More information about the webkit-unassigned mailing list