Summary: | bugzilla code-review.js: RangeError: too many arguments provided for a function call | ||
---|---|---|---|
Product: | WebKit | Reporter: | Carlos Alberto Lopez Perez <clopez> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=207644 |
Description
Carlos Alberto Lopez Perez
2020-02-14 04:29:04 PST
That traceback above was from Firefox, Chrome shows it like: Uncaught RangeError: Maximum call stack size exceeded at z (jquery-1.4.2.min.js:87) at k (jquery-1.4.2.min.js:73) at Function.k [as find] (jquery-1.4.2.min.js:91) at init.find (jquery-1.4.2.min.js:95) at new init (jquery-1.4.2.min.js:23) at c (jquery-1.4.2.min.js:20) at crawlDiff (VM2067 code-review.js:604) at HTMLDocument.handleDocumentReady (VM2067 code-review.js:1100) at Function.ready (jquery-1.4.2.min.js:26) at HTMLDocument.L (jquery-1.4.2.min.js:33) it is caused by the jquery selector for Line > $('.Line') jquery-1.4.2.min.js:87 Uncaught RangeError: Maximum call stack size exceeded at z (jquery-1.4.2.min.js:87) at k (jquery-1.4.2.min.js:73) at Function.k [as find] (jquery-1.4.2.min.js:91) at init.find (jquery-1.4.2.min.js:95) at new init (jquery-1.4.2.min.js:23) at c (jquery-1.4.2.min.js:20) at <anonymous>:1:1 However this works: > document.getElementsByClassName('Line').length 616466 something like this seems to workaround the RangeError issue - $('.Line').each(idify).each(hoverify); + var line_elements = document.getElementsByClassName('Line'); + for (var i = 0; i < line_elements.length; i++) + jQuery(line_elements[i]).each(idify).each(hoverify); But chrome ends crashing anyway :\ Didn't tried with other browser because its much harder to edit/test JS live. |