{"action":"opened","issue":{"url":"https://api.github.com/repos/SitePen/remap-istanbul/issues/106","repository_url":"https://api.github.com/repos/SitePen/remap-istanbul","labels_url":"https://api.github.com/repos/SitePen/remap-istanbul/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/SitePen/remap-istanbul/issues/106/comments","events_url":"https://api.github.com/repos/SitePen/remap-istanbul/issues/106/events","html_url":"https://github.com/SitePen/remap-istanbul/issues/106","id":196155611,"number":106,"title":"Typescript extended classes show branch error","user":{"login":"itslenny","id":5210230,"avatar_url":"https://avatars.githubusercontent.com/u/5210230?v=3","gravatar_id":"","url":"https://api.github.com/users/itslenny","html_url":"https://github.com/itslenny","followers_url":"https://api.github.com/users/itslenny/followers","following_url":"https://api.github.com/users/itslenny/following{/other_user}","gists_url":"https://api.github.com/users/itslenny/gists{/gist_id}","starred_url":"https://api.github.com/users/itslenny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itslenny/subscriptions","organizations_url":"https://api.github.com/users/itslenny/orgs","repos_url":"https://api.github.com/users/itslenny/repos","events_url":"https://api.github.com/users/itslenny/events{/privacy}","received_events_url":"https://api.github.com/users/itslenny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-16T21:13:51Z","updated_at":"2016-12-16T21:13:51Z","closed_at":null,"body":"I'm not 100% sure if this is a remap issue or not. If not let me know what would be the responsible party.\r\n\r\nThe issue is when you have a class that extends another class and call `super()` the typescript compiler creates a branch that you cannot access which comes back as a branch failure and can dramatically decrease code coverage if there aren't many other branches in the file.\r\n\r\n**Typescript example**\r\n```\r\nclass Response {\r\n    constructor() { }\r\n}\r\n\r\nclass HttpResponse extends Response {\r\n    constructor() {\r\n        super();\r\n    }\r\n}\r\n```\r\n\r\n**Resulting Javascript**\r\n```\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Response = (function () {\r\n    function Response() {\r\n    }\r\n    return Response;\r\n}());\r\nvar HttpResponse = (function (_super) {\r\n    __extends(HttpResponse, _super);\r\n    function HttpResponse() {\r\n        return _super.call(this) || this;\r\n    }\r\n    return HttpResponse;\r\n}(Response));\r\n```\r\n\r\nThe semi-colon at the end of `super();` is highlighted as \"branch not tested\" error."}}
{"actor":{"display_login":"itslenny"}}