cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Invisible JS Error: "Invalid left-hand side of assignment"

serged76
Making moves

Looks like I've found sad  UX error for Firefox developer edition. That is, in my JS I say

document.querySelector(".js-born-free")?.style.visibility = "visible";

This should yield common error like "Invalid left-hand side in assignment". But FF says that module cannot be instantiated at runtime and  silent completely about the reason, which is mistake itself.

This at least makes it hard to find and debug the JS error, leading to waste of developer's time.

In the same Chrome (my current is128.0.6613.120 (Official Build) (arm64)), it says (in developer-friendly manner):

XXXXXXXX.js?v=stizfgdtfct32jXo_cLTq0V16QCINiIIheedeFjRTKA:164 Uncaught SyntaxError: Invalid left-hand side in assignment (at XXXXXXXX.js?v=stizfgdtfct32jXo_cLTq0V16QCINiIIheedeFjRTKA:164:9)

0 REPLIES 0