Are comments literally simply removed from your source prior to parsing, or can they be considered line-breaks and break continuity in certain contexts?
'foo'.replace(/f/, 'b')
.replace(/o/, 'a')
.replace(/o/, 'r') ;
'foo'.replace(/x/, 'y');
var foo = ( true !== false ) ?
'bar' : 'baz';
You know, because they say that the spaces are “safe” and “insignificant” or something else, but we all know that there are exceptions. Are comments really safe?
source
share