What does :-infinity mean in Initiator column of Chrome dev tools What does :-infinity mean in Initiator column of Chrome dev tools google-chrome google-chrome

What does :-infinity mean in Initiator column of Chrome dev tools


I think this is a Chrome bug because:

Infinity is a numerical value representing positive infinity. -Infinity is a numeric value that represents negative infinity. Infinity is displayed when the number exceeds the upper limit of floating point numbers, which is equal to 1,779693134862315E + 308.


Likely a bug with Chrome. Some potential reasons(?):

  • Web Workers (Which service workers are a subset of) run on a different thread, so it may cause issues when Chrome tries to get the line number.
  • infinity is a JavaScript keyword, so Chrome Developer tools may be written in HTML/CSS/JS, and JS is weird to begin with.


I had this issue when I had set the css property 'background-image' to 'url("#")' (via a js variable). To fix it, I changed the js code so that the variable holds the whole css property, rather than just the URL - so it is initialised to 'none' (rather than '#'), and set to 'url(...)' when there is a valid URL to set it to.