diff --git a/lib/scope.js b/lib/scope.js index 6c19c19a..11a1acd7 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -480,7 +480,11 @@ var base54 = (function() { var chars, frequency; function reset() { frequency = Object.create(null); - chars = string.split("").map(function(ch){ return ch.charCodeAt(0) }); + var length = string.length; + chars = []; + for(var i=0;i