{"action":"created","issue":{"url":"https://api.github.com/repos/qmlweb/qmlweb/issues/140","repository_url":"https://api.github.com/repos/qmlweb/qmlweb","labels_url":"https://api.github.com/repos/qmlweb/qmlweb/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/qmlweb/qmlweb/issues/140/comments","events_url":"https://api.github.com/repos/qmlweb/qmlweb/issues/140/events","html_url":"https://github.com/qmlweb/qmlweb/issues/140","id":139709258,"number":140,"title":"code duplications: lib/parser.js ~ uglify/parse.js","user":{"login":"henrikrudstrom","id":82979,"avatar_url":"https://avatars.githubusercontent.com/u/82979?v=3","gravatar_id":"","url":"https://api.github.com/users/henrikrudstrom","html_url":"https://github.com/henrikrudstrom","followers_url":"https://api.github.com/users/henrikrudstrom/followers","following_url":"https://api.github.com/users/henrikrudstrom/following{/other_user}","gists_url":"https://api.github.com/users/henrikrudstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/henrikrudstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrikrudstrom/subscriptions","organizations_url":"https://api.github.com/users/henrikrudstrom/orgs","repos_url":"https://api.github.com/users/henrikrudstrom/repos","events_url":"https://api.github.com/users/henrikrudstrom/events{/privacy}","received_events_url":"https://api.github.com/users/henrikrudstrom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-09T21:42:33Z","updated_at":"2016-03-11T11:59:36Z","closed_at":null,"body":"The parser is currently a bit beyond me, there seems to be a *lot* of duplicate code or at least functions in `lib/parser.js` and `uglify/parse.js`. I suppose a lot of this can safely be removed"},"comment":{"url":"https://api.github.com/repos/qmlweb/qmlweb/issues/comments/195339343","html_url":"https://github.com/qmlweb/qmlweb/issues/140#issuecomment-195339343","issue_url":"https://api.github.com/repos/qmlweb/qmlweb/issues/140","id":195339343,"user":{"login":"Plaristote","id":1028544,"avatar_url":"https://avatars.githubusercontent.com/u/1028544?v=3","gravatar_id":"","url":"https://api.github.com/users/Plaristote","html_url":"https://github.com/Plaristote","followers_url":"https://api.github.com/users/Plaristote/followers","following_url":"https://api.github.com/users/Plaristote/following{/other_user}","gists_url":"https://api.github.com/users/Plaristote/gists{/gist_id}","starred_url":"https://api.github.com/users/Plaristote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Plaristote/subscriptions","organizations_url":"https://api.github.com/users/Plaristote/orgs","repos_url":"https://api.github.com/users/Plaristote/repos","events_url":"https://api.github.com/users/Plaristote/events{/privacy}","received_events_url":"https://api.github.com/users/Plaristote/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T11:59:36Z","updated_at":"2016-03-11T11:59:36Z","body":"From my perspective, we need to parse them to find out which symbols are to be made available from contexts.\r\nFor instance, if you wish to use an alias for a javascript file, you need to take everything from the global scope of the javascript file, and put it all in an object using the alias name."}}