Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot call method 'hasOwnProperty' of undefined #23

Closed
suyuan1203 opened this issue Mar 22, 2014 · 0 comments
Closed

TypeError: Cannot call method 'hasOwnProperty' of undefined #23

suyuan1203 opened this issue Mar 22, 2014 · 0 comments
Assignees
Milestone

Comments

@suyuan1203
Copy link

var pinyin = require('pinyin');

console.log(pinyin('你'));
/node_modules/pinyin/src/pinyin.js:44
    if(more.hasOwnProperty(k)){
            ^
TypeError: Cannot call method 'hasOwnProperty' of undefined
    at extend xxxx/pinyintest/node_modules/pinyin/src/pinyin.js:44:13)
    at pinyin (xxxx/node_modules/pinyin/src/pinyin.js:158:13)
    at Object.<anonymous> (xxx/app.js:3:13)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3
@hotoo hotoo self-assigned this Mar 23, 2014
@hotoo hotoo closed this as completed in 62c614f Mar 24, 2014
@hotoo hotoo added this to the 2.2.1 milestone Mar 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants