mathiasbynens / mathiasbynens/utf8.js
string.charCodeAt is not a function
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 562
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
TypeError: string.charCodeAt is not a function
at ucs2decode (C:\Users\bash\NEMid\node_modules\utf8\utf8.js:30:19)
at Object.utf8decode [as decode] (C:\Users\bash\NEMid\node_modules\utf8\utf8.js:201:15)
at Object.<anonymous> (C:\Users\bash\NEMid\client.js:21:95)
at Module._compile (module.js:573:32)
at Object.Module._extensions..js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)
at Module.runMain (module.js:607:10)
at run (bootstrap_node.js:382:7)
node v7.0.0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at client.js:21:95 and trace the value passed to utf8.decode, then inspect ucs2decode at node_modules/utf8/utf8.js:30 under Node v7. Reproduce the TypeError and determine why the decode input is not a string; done means the reported call no longer raises this error, with the expected behavior verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100