Skip to content

Commit

Permalink
fix another return value in uncons
Browse files Browse the repository at this point in the history
  • Loading branch information
luite committed Oct 5, 2016
1 parent b722082 commit ea72604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsbits/jsstring.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if(String.prototype.codePointAt) {
}
var ch = str.codePointAt(0);
if(ch === undefined) {
RETURN_UBX_TUP2(null, null);
RETURN_UBX_TUP2(-1, null);
}
RETURN_UBX_TUP2(ch, str.substr(IS_ASTRAL(ch)?2:1));
}
Expand Down

0 comments on commit ea72604

Please sign in to comment.