{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/6568","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/6568/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/6568/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/6568/events","html_url":"https://github.com/nodejs/node/issues/6568","id":153003058,"number":6568,"title":"the printed error stack is irrelevant to the place where the error occurred.","user":{"login":"calidion","id":131776,"avatar_url":"https://avatars.githubusercontent.com/u/131776?v=3","gravatar_id":"","url":"https://api.github.com/users/calidion","html_url":"https://github.com/calidion","followers_url":"https://api.github.com/users/calidion/followers","following_url":"https://api.github.com/users/calidion/following{/other_user}","gists_url":"https://api.github.com/users/calidion/gists{/gist_id}","starred_url":"https://api.github.com/users/calidion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calidion/subscriptions","organizations_url":"https://api.github.com/users/calidion/orgs","repos_url":"https://api.github.com/users/calidion/repos","events_url":"https://api.github.com/users/calidion/events{/privacy}","received_events_url":"https://api.github.com/users/calidion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-04T12:47:05Z","updated_at":"2016-05-04T12:58:14Z","closed_at":null,"body":"<!--\r\nThanks for wanting to report an issue you've found in Node.js. Please fill in\r\nthe template below by replacing the html comments with an appropriate answer.\r\nIf unsure about something, just do as best as you're able.\r\n\r\nversion: usually output of `node -v`\r\nplatform:  either `uname -a` output, or if Windows, version and 32 or 64-bit.\r\nsubsystem:  optional -- if known please specify affected core module name.\r\n\r\nIt will be much easier for us to fix the issue if a test case that reproduces\r\nthe problem is provided. Ideally this test case should not have any external\r\ndependencies. We understand that it is not always possible to reduce your code\r\nto a small test case, but we would appreciate to have as\r\nmuch data as possible.\r\n\r\nThank you!\r\n-->\r\n\r\n* **Version**:   all\r\n* **Platform**: all \r\n* **Subsystem**:  none\r\n\r\n<!-- Enter your issue details below this comment. -->\r\n\r\nthe error stack is usually useless for bug tracing.\r\n\r\nfor example:\r\n\r\nthe error source:\r\n```js\r\n// named bootstrap.js\r\nstorage = server.settings.service(sails.hook.models);\r\nvar storage =\r\nvar settings = weixin.getSettings(storage);\r\n```\r\nthe error message:\r\n```js\r\n     Uncaught SyntaxError: Unexpected token var\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module.load (node_modules/coffee-script/lib/coffee-script/register.js:45:36)\r\n    at node_modules/include-all/index.js:129:29\r\n    at Array.forEach (native)\r\n    at requireAll (node_modules/include-all/index.js:44:9)\r\n    at buildDictionary (node_modules/sails-build-dictionary/index.js:68:14)\r\n    at Function.module.exports.aggregate (node_modules/sails-build-dictionary/index.js:190:9)\r\n    at Array.loadOtherConfigFiles (node_modules/sails/lib/hooks/moduleloader/index.js:164:27)\r\n    at node_modules/sails/node_modules/async/lib/async.js:484:38\r\n    at _each (node_modules/sails/node_modules/async/lib/async.js:46:13)\r\n    at Object.async.auto (node_modules/sails/node_modules/async/lib/async.js:455:9)\r\n    at Hook.loadUserConfig (node_modules/sails/lib/hooks/moduleloader/index.js:160:13)\r\n    at Hook.bound [as loadUserConfig] (node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)\r\n    at Hook.loadModules (node_modules/sails/lib/hooks/userconfig/index.js:43:18)\r\n    at Hook.bound [as loadModules] (node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)\r\n    at Array.async.auto.modules (node_modules/sails/lib/hooks/index.js:67:27)\r\n    at node_modules/sails/node_modules/async/lib/async.js:484:38\r\n    at _each (node_modules/sails/node_modules/async/lib/async.js:46:13)\r\n    at Object.async.auto (node_modules/sails/node_modules/async/lib/async.js:455:9)\r\n    at Hook.load (node_modules/sails/lib/hooks/index.js:61:13)\r\n    at Hook.bound [as load] (node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)\r\n    at loadHook (node_modules/sails/lib/app/private/loadHooks.js:97:17)\r\n    at Object.async.series.userconfig (node_modules/sails/lib/app/private/loadHooks.js:138:11)\r\n    at node_modules/sails/node_modules/async/lib/async.js:620:25\r\n    at iterate (node_modules/sails/node_modules/async/lib/async.js:146:13)\r\n    at node_modules/sails/node_modules/async/lib/async.js:157:25\r\n    at node_modules/sails/node_modules/async/lib/async.js:626:21\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/216854523","html_url":"https://github.com/nodejs/node/issues/6568#issuecomment-216854523","issue_url":"https://api.github.com/repos/nodejs/node/issues/6568","id":216854523,"user":{"login":"cjihrig","id":2512748,"avatar_url":"https://avatars.githubusercontent.com/u/2512748?v=3","gravatar_id":"","url":"https://api.github.com/users/cjihrig","html_url":"https://github.com/cjihrig","followers_url":"https://api.github.com/users/cjihrig/followers","following_url":"https://api.github.com/users/cjihrig/following{/other_user}","gists_url":"https://api.github.com/users/cjihrig/gists{/gist_id}","starred_url":"https://api.github.com/users/cjihrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjihrig/subscriptions","organizations_url":"https://api.github.com/users/cjihrig/orgs","repos_url":"https://api.github.com/users/cjihrig/repos","events_url":"https://api.github.com/users/cjihrig/events{/privacy}","received_events_url":"https://api.github.com/users/cjihrig/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T12:58:14Z","updated_at":"2016-05-04T12:58:14Z","body":"The stack trace looks to be due to your application. Have you tried this on v6.0.0, as the information printed on syntax errors has gotten better."}}