{"action":"created","issue":{"url":"https://api.github.com/repos/vkarpov15/kareem/issues/7","repository_url":"https://api.github.com/repos/vkarpov15/kareem","labels_url":"https://api.github.com/repos/vkarpov15/kareem/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/vkarpov15/kareem/issues/7/comments","events_url":"https://api.github.com/repos/vkarpov15/kareem/issues/7/events","html_url":"https://github.com/vkarpov15/kareem/issues/7","id":179031482,"number":7,"title":"Kareem prevent me from adding custom method to Object.prototype","user":{"login":"menemslama","id":16552963,"avatar_url":"https://avatars.githubusercontent.com/u/16552963?v=3","gravatar_id":"","url":"https://api.github.com/users/menemslama","html_url":"https://github.com/menemslama","followers_url":"https://api.github.com/users/menemslama/followers","following_url":"https://api.github.com/users/menemslama/following{/other_user}","gists_url":"https://api.github.com/users/menemslama/gists{/gist_id}","starred_url":"https://api.github.com/users/menemslama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/menemslama/subscriptions","organizations_url":"https://api.github.com/users/menemslama/orgs","repos_url":"https://api.github.com/users/menemslama/repos","events_url":"https://api.github.com/users/menemslama/events{/privacy}","received_events_url":"https://api.github.com/users/menemslama/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-24T13:56:55Z","updated_at":"2016-09-27T21:39:36Z","closed_at":null,"body":"when I'm trying to add a custom method to Object.prototype I got this error:\r\n\r\nTypeError: this._pres[key].slice is not a function\r\n    at Kareem.clone (MYPATH\\kareem\\index.js:303:36)\r\n "},"comment":{"url":"https://api.github.com/repos/vkarpov15/kareem/issues/comments/250007166","html_url":"https://github.com/vkarpov15/kareem/issues/7#issuecomment-250007166","issue_url":"https://api.github.com/repos/vkarpov15/kareem/issues/7","id":250007166,"user":{"login":"menemslama","id":16552963,"avatar_url":"https://avatars.githubusercontent.com/u/16552963?v=3","gravatar_id":"","url":"https://api.github.com/users/menemslama","html_url":"https://github.com/menemslama","followers_url":"https://api.github.com/users/menemslama/followers","following_url":"https://api.github.com/users/menemslama/following{/other_user}","gists_url":"https://api.github.com/users/menemslama/gists{/gist_id}","starred_url":"https://api.github.com/users/menemslama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/menemslama/subscriptions","organizations_url":"https://api.github.com/users/menemslama/orgs","repos_url":"https://api.github.com/users/menemslama/repos","events_url":"https://api.github.com/users/menemslama/events{/privacy}","received_events_url":"https://api.github.com/users/menemslama/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T21:39:36Z","updated_at":"2016-09-27T21:39:36Z","body":"Here in this script https://github.com/menemslama/drello/blob/master/sockets.js \r\nif I wrote something like that \r\n` exports.emit = (function () {  `\r\n  ` Object.prototype.emit = function () { `\r\n     ` console.log(\"Not working, and it will throw an Error in the terminal\");  `\r\n  `  };  `\r\n  ` return emit;  `\r\n ` })();  `\r\n\r\nI will get this error in my terminal from \"kareem\"\r\n\r\n$ node app\r\nNot working, and it will throw an Error in the terminal\r\nNot working, and it will throw an Error in the terminal\r\nNot working, and it will throw an Error in the terminal\r\nNot working, and it will throw an Error in the terminal\r\nNot working, and it will throw an Error in the terminal\r\nNot working, and it will throw an Error in the terminal\r\nNot working, and it will throw an Error in the terminal\r\nNot working, and it will throw an Error in the terminal\r\n{MYPATH}\\drello\\node_modules\\kareem\\index.js:303\r\nn._pres[key] = this._pres[key].slice();\r\n^\r\n\r\nTypeError: this._pres[key].slice is not a function\r\nat Kareem.clone ({MYPATH}\\drello\\node_modules\\kareem\\index.\r\njs:303:36)\r\nat Function.compile ({MYPATH}\\drello\\node_modules\\mongoose\\\r\nlib\\model.js:3178:32)\r\nat Mongoose.model ({MYPATH}\\drello\\node_modules\\mongoose\\li\r\nb\\index.js:392:17)\r\nat Object.<anonymous> ({MYPATH}\\drello\\models\\user.js:19:27\r\n)\r\nat Module._compile (module.js:556:32)\r\nat Object.Module._extensions..js (module.js:565:10)\r\nat Module.load (module.js:473:32)\r\nat tryModuleLoad (module.js:432:12)\r\nat Function.Module._load (module.js:424:3)\r\nat Module.require (module.js:483:17)\r\nat require (internal/module.js:20:19)\r\nat Object.<anonymous> ({MYPATH}\\drello\\app.js:12:25)\r\nat Module._compile (module.js:556:32)\r\nat Object.Module._extensions..js (module.js:565:10)\r\nat Module.load (module.js:473:32)\r\nat tryModuleLoad (module.js:432:12)\r\nat Function.Module._load (module.js:424:3)\r\nat Module.runMain (module.js:590:10)\r\nat run (bootstrap_node.js:394:7)\r\nat startup (bootstrap_node.js:149:9)\r\nat bootstrap_node.js:509:3"}}
{"actor":{"display_login":"menemslama"}}