bug found - javascript editor

This javascript code, if typed in, produces a line error.

STEP 1:

for(i=1; i\<1;i++){   
if(1){   
outln('not done yet');   
}// end  
}//   
 
return 0;   

STEP 2:

for(i=1; i\<1;i++){   
if(1){   
outln('not done yet');   
}// end  
}// end if(..) \<== Adding this line generates an error.   
 
return 0;   

yes. It’s not so smart with comments. You need to be careful what you comment out.

That’s not cool, the whole point of comment exclusion is to Not have to watch what follows.

“Better watch your language young lady, and don’t give me no script about it!” :slight_smile:

I’m sorry but both of your codes don’t produce errors in my browser. Could you tell me more about your problem and scripting environment(especially browser)?

And evaluation process is just eval your total code and catch errors if it throws. Scripting interface manipulates your code before processing but I don’t think it is matter. Anyway thank you seagat and I hope you enjoy scripting :slight_smile:

np :slight_smile:

Google Chrome - 26.0.1410.64 (Official Build 193017) m
OS - Windows
WebKit - 537.31 (@147513)
JavaScript Engine - V8 3.16.14.11
Flash Version - 11.7.700.179