{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/7231","repository_url":"https://api.github.com/repos/mozilla/pdf.js","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7231/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7231/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7231/events","html_url":"https://github.com/mozilla/pdf.js/issues/7231","id":150043727,"number":7231,"title":"Weird for loop in bidi.js","user":{"login":"xiemaisi","id":501353,"avatar_url":"https://avatars.githubusercontent.com/u/501353?v=3","gravatar_id":"","url":"https://api.github.com/users/xiemaisi","html_url":"https://github.com/xiemaisi","followers_url":"https://api.github.com/users/xiemaisi/followers","following_url":"https://api.github.com/users/xiemaisi/following{/other_user}","gists_url":"https://api.github.com/users/xiemaisi/gists{/gist_id}","starred_url":"https://api.github.com/users/xiemaisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiemaisi/subscriptions","organizations_url":"https://api.github.com/users/xiemaisi/orgs","repos_url":"https://api.github.com/users/xiemaisi/repos","events_url":"https://api.github.com/users/xiemaisi/events{/privacy}","received_events_url":"https://api.github.com/users/xiemaisi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-21T11:19:50Z","updated_at":"2016-04-21T11:19:50Z","closed_at":null,"body":"[This](https://github.com/mozilla/pdf.js/blob/990150ce615d76257d4bcbc5a1d7f853ef3fd0da/src/core/bidi.js#L255) looks wrong:\r\n\r\n```javascript\r\nfor (j = i + 1; j < strLength; --j) {\r\n  ...\r\n}\r\n```\r\n\r\nNote that the loop counter is decremented, but checked with `<`. I assume it should be incremented instead?"}}