Skip to content

Commit

Permalink
fix JSString head
Browse files Browse the repository at this point in the history
  • Loading branch information
luite committed Oct 5, 2016
1 parent ea72604 commit 9d89e12
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 @@ -40,7 +40,7 @@ if(String.prototype.codePointAt) {
}
h$jsstringHead = function(str) {
TRACE_JSSTRING("(codePointAt) head: " + str);
var cp = ch.codePointAt(0);
var cp = str.codePointAt(0);
return (cp === undefined) ? -1 : (cp|0);
}
h$jsstringTail = function(str) {
Expand Down

0 comments on commit 9d89e12

Please sign in to comment.