I put cross-browser split into my code and run it through jsHint and got Unexpected use of '>>>' in lines:
limit = limit === undef ?
-1 >>> 0 : // Math.pow(2, 32) - 1
limit >>> 0; // ToUint32(limit)
the same is when I put it in one line and also put expressions into parentheses
is this error? How can I fix it?
You can disable the error (well, they really should call it a warning) by turning off the "When bitwise operators are used" option (the top option listed here — oddly, the documentation doesn’t mention all of the bitwise operators it relates to); if you do, the code above doesn’t produce an error.
Here’s the rationale for warning about the use of bitwise operators from the original JSLint tool (JSHint is a friendlier version of JSLint with more options to turn off "errors" that are purely style):