{"action":"created","issue":{"url":"https://api.github.com/repos/dougwilson/nodejs-depd/issues/17","labels_url":"https://api.github.com/repos/dougwilson/nodejs-depd/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/dougwilson/nodejs-depd/issues/17/comments","events_url":"https://api.github.com/repos/dougwilson/nodejs-depd/issues/17/events","html_url":"https://github.com/dougwilson/nodejs-depd/issues/17","id":66688226,"number":17,"title":"Stack trace api differences when in strict mode causing TypeErrors","user":{"login":"jasisk","id":62923,"avatar_url":"https://avatars.githubusercontent.com/u/62923?v=3","gravatar_id":"","url":"https://api.github.com/users/jasisk","html_url":"https://github.com/jasisk","followers_url":"https://api.github.com/users/jasisk/followers","following_url":"https://api.github.com/users/jasisk/following{/other_user}","gists_url":"https://api.github.com/users/jasisk/gists{/gist_id}","starred_url":"https://api.github.com/users/jasisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasisk/subscriptions","organizations_url":"https://api.github.com/users/jasisk/orgs","repos_url":"https://api.github.com/users/jasisk/repos","events_url":"https://api.github.com/users/jasisk/events{/privacy}","received_events_url":"https://api.github.com/users/jasisk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dougwilson/nodejs-depd/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"milestone":null,"comments":22,"created_at":"2015-04-06T19:41:51Z","updated_at":"2015-04-07T02:13:56Z","closed_at":"2015-04-07T00:26:29Z","body":"Can be realized by setting strict mode in `test/fixtures/my-lib`.\r\n\r\nFrom the [API docs](https://code.google.com/p/v8-wiki/wiki/JavaScriptStackTraceApi):\r\n> To maintain restrictions imposed on strict mode functions, frames that have a strict mode function and all frames below (its caller etc.) are not allow to access their receiver and function objects.\r\n\r\nFailing test:\r\n> ``` sh\r\n  1) deprecate(message) when message omitted should generate message for function call on named function:\r\n     TypeError: Cannot read property 'constructor' of undefined\r\n      at CallSiteGetTypeName (native)\r\n      at defaultMessage (/Users/jsisk/src/node/nodejs-depd/index.js:283:27)\r\n      at Function.log (/Users/jsisk/src/node/nodejs-depd/index.js:234:9)\r\n      at deprecate (/Users/jsisk/src/node/nodejs-depd/index.js:125:9)\r\n      at automsgnamed (/Users/jsisk/src/node/nodejs-depd/test/fixtures/my-lib.js:59:3)\r\n      at callold (/Users/jsisk/src/node/nodejs-depd/test/test.js:116:9)\r\n      at captureStderr (/Users/jsisk/src/node/nodejs-depd/test/test.js:664:5)\r\n      at Context.<anonymous> (/Users/jsisk/src/node/nodejs-depd/test/test.js:118:20)\r\n      at callFn (/Users/jsisk/src/node/nodejs-depd/node_modules/mocha/lib/runnable.js:250:21)\r\n      at Test.Runnable.run (/Users/jsisk/src/node/nodejs-depd/node_modules/mocha/lib/runnable.js:243:7)\r\n      at Runner.runTest (/Users/jsisk/src/node/nodejs-depd/node_modules/mocha/lib/runner.js:373:10)\r\n      at /Users/jsisk/src/node/nodejs-depd/node_modules/mocha/lib/runner.js:451:12\r\n      at next (/Users/jsisk/src/node/nodejs-depd/node_modules/mocha/lib/runner.js:298:14)\r\n      at /Users/jsisk/src/node/nodejs-depd/node_modules/mocha/lib/runner.js:308:7\r\n      at next (/Users/jsisk/src/node/nodejs-depd/node_modules/mocha/lib/runner.js:246:23)\r\n      at Immediate._onImmediate (/Users/jsisk/src/node/nodejs-depd/node_modules/mocha/lib/runner.js:275:5)\r\n      at processImmediate [as _immediateCallback] (timers.js:358:17)\r\n```"},"comment":{"url":"https://api.github.com/repos/dougwilson/nodejs-depd/issues/comments/90316617","html_url":"https://github.com/dougwilson/nodejs-depd/issues/17#issuecomment-90316617","issue_url":"https://api.github.com/repos/dougwilson/nodejs-depd/issues/17","id":90316617,"user":{"login":"jasisk","id":62923,"avatar_url":"https://avatars.githubusercontent.com/u/62923?v=3","gravatar_id":"","url":"https://api.github.com/users/jasisk","html_url":"https://github.com/jasisk","followers_url":"https://api.github.com/users/jasisk/followers","following_url":"https://api.github.com/users/jasisk/following{/other_user}","gists_url":"https://api.github.com/users/jasisk/gists{/gist_id}","starred_url":"https://api.github.com/users/jasisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasisk/subscriptions","organizations_url":"https://api.github.com/users/jasisk/orgs","repos_url":"https://api.github.com/users/jasisk/repos","events_url":"https://api.github.com/users/jasisk/events{/privacy}","received_events_url":"https://api.github.com/users/jasisk/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T02:13:55Z","updated_at":"2015-04-07T02:13:55Z","body":"Sounds good! Thanks again!"}}