You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works as it is, but breaks if the spacing changes:
var t=""+++N; // error
I know, you're thinking "why would you change the spacing if it works as it is?" I noticed this issue because we bundle underscore-min.js in our site's aggregated javascript file, the generator of which strips whitespace.
I know our bundling script is not optimal if it's breaking stuff, but this is the only part of underscore-min.js that suffers because of it.
If the function read var id = (++idCounter) + ''; it would not suffer from this issue.
The text was updated successfully, but these errors were encountered:
The unminified
uniqueId
function contains:This minifies to:
It works as it is, but breaks if the spacing changes:
I know, you're thinking "why would you change the spacing if it works as it is?" I noticed this issue because we bundle underscore-min.js in our site's aggregated javascript file, the generator of which strips whitespace.
I know our bundling script is not optimal if it's breaking stuff, but this is the only part of underscore-min.js that suffers because of it.
If the function read
var id = (++idCounter) + '';
it would not suffer from this issue.The text was updated successfully, but these errors were encountered: