{"action":"closed","issue":{"url":"https://api.github.com/repos/leancloud/javascript-sdk/issues/98","labels_url":"https://api.github.com/repos/leancloud/javascript-sdk/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/leancloud/javascript-sdk/issues/98/comments","events_url":"https://api.github.com/repos/leancloud/javascript-sdk/issues/98/events","html_url":"https://github.com/leancloud/javascript-sdk/issues/98","id":79898644,"number":98,"title":"AV.Promise failed to catch error in resolveFun","user":{"login":"liuyanghejerry","id":345442,"avatar_url":"https://avatars.githubusercontent.com/u/345442?v=3","gravatar_id":"","url":"https://api.github.com/users/liuyanghejerry","html_url":"https://github.com/liuyanghejerry","followers_url":"https://api.github.com/users/liuyanghejerry/followers","following_url":"https://api.github.com/users/liuyanghejerry/following{/other_user}","gists_url":"https://api.github.com/users/liuyanghejerry/gists{/gist_id}","starred_url":"https://api.github.com/users/liuyanghejerry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuyanghejerry/subscriptions","organizations_url":"https://api.github.com/users/liuyanghejerry/orgs","repos_url":"https://api.github.com/users/liuyanghejerry/repos","events_url":"https://api.github.com/users/liuyanghejerry/events{/privacy}","received_events_url":"https://api.github.com/users/liuyanghejerry/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-23T17:00:46Z","updated_at":"2015-06-30T02:47:16Z","closed_at":"2015-06-30T02:47:16Z","body":"Given code like this:\r\n\r\n```javascript\r\n       new AV.Promise(function(resolve, reject) {\r\n\t\treturn resolve(123);\r\n\t})\r\n\t.then(function() {\r\n\t\tthrow {code: 1};\r\n\t})\r\n\t.then(function(){}, function(error) {\r\n\t\tconsole.log('catch them all!');\r\n\t})\r\n```\r\n\r\nExpected to print `catch them all!` but got uncaught error.\r\n\r\nWhen inspected the source, found `_isPromisesAPlusCompliant = false` in promise.js, which seems to break the behavior expected earlier. \r\n\r\nWondering why?"}}