{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1900","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1900/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1900/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1900/events","html_url":"https://github.com/webpack/webpack/issues/1900","id":127118904,"number":1900,"title":"Webpack fails to parse my code when it ends with a comment.","user":{"login":"letharion","id":494592,"avatar_url":"https://avatars.githubusercontent.com/u/494592?v=3","gravatar_id":"","url":"https://api.github.com/users/letharion","html_url":"https://github.com/letharion","followers_url":"https://api.github.com/users/letharion/followers","following_url":"https://api.github.com/users/letharion/following{/other_user}","gists_url":"https://api.github.com/users/letharion/gists{/gist_id}","starred_url":"https://api.github.com/users/letharion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letharion/subscriptions","organizations_url":"https://api.github.com/users/letharion/orgs","repos_url":"https://api.github.com/users/letharion/repos","events_url":"https://api.github.com/users/letharion/events{/privacy}","received_events_url":"https://api.github.com/users/letharion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-17T19:51:41Z","updated_at":"2016-01-17T19:51:41Z","closed_at":null,"body":"Given:\r\n\r\n    //ResourceStore.subscribe(() => {\r\n      ReactDOM.render(    \r\n        <Provider store={store}>\r\n          <ResourceList />\r\n        </Provider>,\r\n        document.getElementById('resList')\r\n      );\r\n    //});\r\n\r\nwebpack fails with:\r\n\r\n    ./node_modules/webpack/node_modules/webpack-core/node_modules/source-map/lib/source-map/source-node.js:100\r\n                var code = nextLine.substr(0, mapping.generatedColumn -\r\n                                              ^\r\n    TypeError: Cannot read property 'substr' of undefined\r\n\r\nComplete removal of the last line, the comment, removes the problem."}}