SheepTester / htmlifier

The HTMLifier "converts" Scratch 3.0 projects to an HTML file by putting all the project data and the entire Scratch engine into one enormous file
https://sheeptester.github.io/htmlifier/
MIT License
166 stars 79 forks source link

Error message in 'Eval Error' in spite of proper output #111

Closed SparkScratch-P closed 3 years ago

SparkScratch-P commented 3 years ago

Hi! Hope u r doing well. I am back again with some conversations.

I had made the EvalJS with the eval variable features of this HTMLifier. It is working well with all features, quite properly. Unfortunately, there is a bit of Glitch faced in theeval errorcloud var.

You can try the mistake out. There, start it with Enter + N and then, type alert("Hi!");, then to end coding, type, cde end and then press Enter + R to Run. It will show the proper pop-up, but after that, on the next screen, it shows Error: Unexpected token 'if'. But, practically, there was no error.

SheepTester commented 3 years ago

This is what you set ☁ eval to

image

OUTPUT: (None, if the next line is blank) 6 ERROR !!! (None, if the next line is blank) SyntaxError: Unexpected token 'if'

This is not valid JavaScript. You have a label OUTPUT, then enclosed in parentheses a comma expression. However, the right side of the comma operator has the keyword if, which can only be used in a statement rather than an expression

image

This is a bug with your project, not the HTMLifier. Practically, there was actual;y an error. Make sure you check what ☁ eval is being set to.

SparkScratch-P commented 3 years ago

Oh! Thanks for your help bro.... I will keep it in mind from the next time. Sorry for disturbing you. [image: GeoTrack] https://geotrack.email/?utm_source=gmail&utm_medium=signature&utm_campaign=viralSignature Sender notified with GeoTrack https://geotrack.email/?utm_source=gmail&utm_medium=signature&utm_campaign=viralSignature [image: 2]

On Tue, Aug 10, 2021 at 10:03 AM Sean @.***> wrote:

Closed #111 https://github.com/SheepTester/htmlifier/issues/111.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SheepTester/htmlifier/issues/111#event-5136590534, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARS37VHMP2VH3H6UJM2SJGDT4FLWVANCNFSM5B3ZKFIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

SheepTester commented 3 years ago

Worrying, your emails have trackers

SparkScratch-P commented 3 years ago

Yes, I use geo-track, unlicensed, can't track location, but can see if they are read or not.. for Github issues, it does not track if the mails are read or nt. so, not useful fo gi issues [image: GeoTrack] https://geotrack.email/?utm_source=gmail&utm_medium=signature&utm_campaign=viralSignature Sender notified with GeoTrack https://geotrack.email/?utm_source=gmail&utm_medium=signature&utm_campaign=viralSignature

On Tue, Aug 10, 2021 at 10:28 PM Sean @.***> wrote:

Worrying, your emails have trackers

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SheepTester/htmlifier/issues/111#issuecomment-896511951, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARS37VFDT7C65AHW4NXTVDDT4IDAFANCNFSM5B3ZKFIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .