{"action":"opened","issue":{"url":"https://api.github.com/repos/egret-labs/egret-core/issues/113","labels_url":"https://api.github.com/repos/egret-labs/egret-core/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/egret-labs/egret-core/issues/113/comments","events_url":"https://api.github.com/repos/egret-labs/egret-core/issues/113/events","html_url":"https://github.com/egret-labs/egret-core/issues/113","id":123214033,"number":113,"title":"game库MainContext类一处关键字使用错误。","user":{"login":"fightingcat","id":3501152,"avatar_url":"https://avatars.githubusercontent.com/u/3501152?v=3","gravatar_id":"","url":"https://api.github.com/users/fightingcat","html_url":"https://github.com/fightingcat","followers_url":"https://api.github.com/users/fightingcat/followers","following_url":"https://api.github.com/users/fightingcat/following{/other_user}","gists_url":"https://api.github.com/users/fightingcat/gists{/gist_id}","starred_url":"https://api.github.com/users/fightingcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fightingcat/subscriptions","organizations_url":"https://api.github.com/users/fightingcat/orgs","repos_url":"https://api.github.com/users/fightingcat/repos","events_url":"https://api.github.com/users/fightingcat/events{/privacy}","received_events_url":"https://api.github.com/users/fightingcat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-21T05:31:54Z","updated_at":"2015-12-21T05:31:54Z","closed_at":null,"body":"egret-core/src/extension/game/system/MainContext.ts文件中最后两行：\r\ndelete testDeviceType1;\r\ndelete testRuntimeType1;\r\ndelete是用来删除对象属性的，这两个是局部变量，这两句是无效的，delete表达式会返回false。\r\n另外delete会改变对象的TransitionMap，导致使用对象的JIT optimized代码bail out，应该尽量避免使用。"}}