diff --git a/jsbits/jsstring.js b/jsbits/jsstring.js index 6a2b2c3..15d68d6 100644 --- a/jsbits/jsstring.js +++ b/jsbits/jsstring.js @@ -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) {