EternaScript Syntax Error In // Comments.

  • 1
  • Problem
  • Updated 6 years ago
EternaScript improperly processes //commented out lines

Create an empty script, Evaluate, this leads to no syntax errors.
Now add

//for (var v in foo)
// Lib.fold("AAUUCCGG");

Click evaluate again, and it will report syntax errors for a missing '}'.

I expect this is due to improper preprocessing of the script. It appears that something is looking for instances of 'Lib.fold(...);' and expanding it into something different and does not handle the case that it occurs inside of comments and inside of for loops at the same time.

The same will occur with all of the Lib commands, out, outln, and so forth. The bug will not occur if there is gibberish inside the for loop without a semicolon.
Photo of DuckBoy

DuckBoy

  • 4 Posts
  • 0 Reply Likes
  • frustrated

Posted 6 years ago

  • 1

Be the first to post a reply!