{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/rhino/issues/100","labels_url":"https://api.github.com/repos/mozilla/rhino/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/rhino/issues/100/comments","events_url":"https://api.github.com/repos/mozilla/rhino/issues/100/events","html_url":"https://github.com/mozilla/rhino/pull/100","id":9489173,"number":100,"title":"Implement ES.next for-of","user":{"login":"tuchida","id":201790,"avatar_url":"https://avatars.githubusercontent.com/u/201790?v=3","gravatar_id":"","url":"https://api.github.com/users/tuchida","html_url":"https://github.com/tuchida","followers_url":"https://api.github.com/users/tuchida/followers","following_url":"https://api.github.com/users/tuchida/following{/other_user}","gists_url":"https://api.github.com/users/tuchida/gists{/gist_id}","starred_url":"https://api.github.com/users/tuchida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuchida/subscriptions","organizations_url":"https://api.github.com/users/tuchida/orgs","repos_url":"https://api.github.com/users/tuchida/repos","events_url":"https://api.github.com/users/tuchida/events{/privacy}","received_events_url":"https://api.github.com/users/tuchida/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2012-12-23T10:08:01Z","updated_at":"2015-06-18T06:46:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/rhino/pulls/100","html_url":"https://github.com/mozilla/rhino/pull/100","diff_url":"https://github.com/mozilla/rhino/pull/100.diff","patch_url":"https://github.com/mozilla/rhino/pull/100.patch"},"body":"This patch is implementing for-of syntax which iterates Array and String.\r\nhttps://developer.mozilla.org/en-US/docs/JavaScript/Reference/Statements/for...of\r\nhttp://wiki.ecmascript.org/doku.php?id=harmony:iterators\r\n\r\nI've used the current ES6 draft (December 21, 2012 Draft) for this patch.\r\nConflict with for each-in, referred to behavior of Firefox19(Aurora 19.0a2 (2012-12-19)).\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/rhino/issues/comments/113054023","html_url":"https://github.com/mozilla/rhino/pull/100#issuecomment-113054023","issue_url":"https://api.github.com/repos/mozilla/rhino/issues/100","id":113054023,"user":{"login":"eshepelyuk","id":1279477,"avatar_url":"https://avatars.githubusercontent.com/u/1279477?v=3","gravatar_id":"","url":"https://api.github.com/users/eshepelyuk","html_url":"https://github.com/eshepelyuk","followers_url":"https://api.github.com/users/eshepelyuk/followers","following_url":"https://api.github.com/users/eshepelyuk/following{/other_user}","gists_url":"https://api.github.com/users/eshepelyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/eshepelyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eshepelyuk/subscriptions","organizations_url":"https://api.github.com/users/eshepelyuk/orgs","repos_url":"https://api.github.com/users/eshepelyuk/repos","events_url":"https://api.github.com/users/eshepelyuk/events{/privacy}","received_events_url":"https://api.github.com/users/eshepelyuk/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T06:46:06Z","updated_at":"2015-06-18T06:46:06Z","body":"Hello @tuchida \r\n1. You could use my simple `Symbol` implementation from PR #203 to implement more spec compatible `for-of` loop.\r\n2. Second thing I would like to ask if it possible to improve this PR by implementing latest version of `Iterator Protocol` as described in [ES 2015 standard](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterator)\r\n3. I would also like to use this work for finalizing #159 where `Iterator and Iterable` protocol is widely used. \r\n\r\nSo, after those changes we could use more of `test262` suites to prove `for-of` implementation.\r\nWhat do you think ?"}}