Haiku Script error in HaikuHelper

swaggy

Active Member
At some point (I don't remember when), I started getting "Script parse error on line 1: Unexpected EOF". My line 1 looks like this:
 
var myTimer = null;
 
I use myTimer later on in my script to run a 5s timer using setTimeout function. This worked flawlessly for some time but recently I started getting this popup in HH. Not sure what to make of it except if I ignore it for long enough, HH will hang and I have to restart the Mac. Any suggestions?
 
Thanks
 
This is actually a parse error in the script. The exact line can't be given because the parse failed. Look for any missing quotes, or brackets.
 
I have gone through the code line by line to make sure there were no missing brackets or quotes or semicolons, still getting the same error. I should say that the script appears to work because I still get push notifications. Just that the error is annoying and eventually I have to restart the Mac. Is there a way to debug to determine which line it's failing on?
 
Just to close the loop for everyone else, this error was coming from the web interface and not the script itself. I had some badly placed ( ) in a call to the web API so had to escape them with backslash, all is good now.
 
Thanks for the support lupinglade!
 
Back
Top