Bug: Function is not being recognized in HTML view script save, though it is a valid working function

Bug: Function is not being recognized in HTML view script save, though it is a valid working function

I've actually seen this same problem in different contexts a few times in recent days, and it's back now, so I'm reporting it.

  • I have a valid working function, in this case named "getDayOfWeekName()"


  • I'm using this function in an HTML view named "Dashboard"


  • Loading up the Dashboard script into the editor, attempting to Save Script (either immediately or after modifying the script) will result in an error message about the getDayOfWeekName() function not being valid.  See below:



  • Yet, the function exists...
  

  • The function has a simple script...



  • It's a function that actually works and has worked for weeks (here seen n Execute mode)



Yet, the error message!


... and, this is a sign of something really weird, if you simply load up the Dashboard script (which works) and then turn around and immediately Save Script, you get the error about the function.  That defies simple reason.


Please advise, and thanks in advance.  You have sharing.


Datazen1
datazen1@gmail.com
Santa Fe, New Mexico US