{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/738","repository_url":"https://api.github.com/repos/Microsoft/ChakraCore","labels_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/738/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/738/comments","events_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/738/events","html_url":"https://github.com/Microsoft/ChakraCore/pull/738","id":146052849,"number":738,"title":"Class extends clause has different source locations between defer/non-defer parse modes","user":{"login":"tcare","id":707073,"avatar_url":"https://avatars.githubusercontent.com/u/707073?v=3","gravatar_id":"","url":"https://api.github.com/users/tcare","html_url":"https://github.com/tcare","followers_url":"https://api.github.com/users/tcare/followers","following_url":"https://api.github.com/users/tcare/following{/other_user}","gists_url":"https://api.github.com/users/tcare/gists{/gist_id}","starred_url":"https://api.github.com/users/tcare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcare/subscriptions","organizations_url":"https://api.github.com/users/tcare/orgs","repos_url":"https://api.github.com/users/tcare/repos","events_url":"https://api.github.com/users/tcare/events{/privacy}","received_events_url":"https://api.github.com/users/tcare/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/ChakraCore/labels/cla-not-required","name":"cla-not-required","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-05T17:15:22Z","updated_at":"2016-04-05T17:16:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/738","html_url":"https://github.com/Microsoft/ChakraCore/pull/738","diff_url":"https://github.com/Microsoft/ChakraCore/pull/738.diff","patch_url":"https://github.com/Microsoft/ChakraCore/pull/738.patch"},"body":"Tracked in OS 7030846.\n\nWhen emitting a class statement with an extends clause, we made the assumption that the start and end of the bytecode for that statement happened in the same place in defer and non-defer parse modes. In fact, it is possible to have the load happen in different locations, e.g. if we cache a previous load's register location in non-defer parse mode and have to load from a local slot in defer parse mode.\n\nThe fix is to set the statement location to the InitClass bytecode.\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/comments/205904910","html_url":"https://github.com/Microsoft/ChakraCore/pull/738#issuecomment-205904910","issue_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/738","id":205904910,"user":{"login":"tcare","id":707073,"avatar_url":"https://avatars.githubusercontent.com/u/707073?v=3","gravatar_id":"","url":"https://api.github.com/users/tcare","html_url":"https://github.com/tcare","followers_url":"https://api.github.com/users/tcare/followers","following_url":"https://api.github.com/users/tcare/following{/other_user}","gists_url":"https://api.github.com/users/tcare/gists{/gist_id}","starred_url":"https://api.github.com/users/tcare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcare/subscriptions","organizations_url":"https://api.github.com/users/tcare/orgs","repos_url":"https://api.github.com/users/tcare/repos","events_url":"https://api.github.com/users/tcare/events{/privacy}","received_events_url":"https://api.github.com/users/tcare/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T17:16:57Z","updated_at":"2016-04-05T17:16:57Z","body":"@akroshg @boingoing please review.\r\n\r\nI considered adding a test for this, but the differences in the bytecode would be fragile."}}