Example:
~/src/documentation〉nvm use v0.10
Now using node v0.10.39 (npm v3.3.9)
~/src/documentation〉node -e "console.log('a'.localeCompare('B'))"
31
~/src/documentation〉nvm use v5
Now using node v5.1.0 (npm v3.3.12)
~/src/documentation〉node -e "console.log('a'.localeCompare('B'))"
-1
It seems likely that this change is due to an upstream V8 changes, but I can't seem to find any issues in the v8 tracker or this one discussing behavioral change with respect to the String.prototype.localeCompare method.
Example:
It seems likely that this change is due to an upstream V8 changes, but I can't seem to find any issues in the v8 tracker or this one discussing behavioral change with respect to the
String.prototype.localeComparemethod.