Sometimes bugs can be particularly evasive, and today I had such a one.
A module in deep in our codebase was throwing an Error, but only in Mozilla���s Firefox browser.
The error was NS_ERROR_ILLEGAL_VALUE.
I did some quick DuckDuckGoing and found that the error occurs when a native DOM function in Firefox is passed a value of a type it does not expect.
The stack trace lead back to this line in our application code:
1
2
3
4
5
6
const hit = find( cache, c => c.original === obj );
if ( hit ) {
return...
Published on March 11, 2020 15:55