You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The automatic Math. prefix doesn't search for whole words so if your javascript code has any tokens that contain names in Math, they fail with a confusing error message:
// Error: Unexpected token '.'functionclamp(num,limit_min,limit_max){returnnum<=limit_min ? limit_min : num>=limit_max ? limit_max : num;}// No error after renaming to avoid 'max' and 'min'functionclamp(num,limit_in,limit_ax){returnnum<=limit_in ? limit_in : num>=limit_ax ? limit_ax : num;}
The text was updated successfully, but these errors were encountered:
The automatic
Math.
prefix doesn't search for whole words so if your javascript code has any tokens that contain names in Math, they fail with a confusing error message:The text was updated successfully, but these errors were encountered: