papandreou / inter

A JavaScript locale library based on information extracted from the Unicode CLDR database
BSD 3-Clause "New" or "Revised" License
21 stars 5 forks source link

TypeError: Cannot call method 'charCodeAt' of undefined #11

Closed ragulka closed 10 years ago

ragulka commented 10 years ago
var inter = require('inter').load('en_in');
console.log(inter.renderNumber(10000000.23));

Results in:

TypeError: Cannot call method 'charCodeAt' of undefined
    at subformatFixed (/Library/WebServer/Documents/node_projects/test_inter/node_modules/inter/build/root.js:175:121)
    at format (/Library/WebServer/Documents/node_projects/test_inter/node_modules/inter/build/root.js:350:84)
    at Object.(anonymous function) [as renderNumber] (/Library/WebServer/Documents/node_projects/test_inter/node_modules/inter/build/root.js:573:162)

I guess this is an issue with this specific locale

papandreou commented 10 years ago

Fixed in 1.2.4. It was an issue with an optimization.