javascript-tutorial / javascript-tutorial/en.javascript.info
Problem with sample program in Async Generators and Iterators article
まだ誰も着手していません。
- 主要言語
- HTML
- スター
- 25.5k
- フォーク
- 4k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
In Plunker, following `Open in Sandbox` link, code provided under "An example of use (shows commit authors in console):" doesn't work (because it doesn't include `fetchCommits` function).
Console shows error:
(index):9 Uncaught (in promise) ReferenceError: fetchCommits is not defined
(index):9 Uncaught (in promise) ReferenceError: fetchCommits is not defined
at (index):9
at (index):18
Running the code directly from the `run` link in article also doesn't work. Gives error:
holder-2.2.min.js:10 Uncaught TypeError: Cannot read property 'appendChild' of undefined
at Object.e.run (holder-2.2.min.js:10)
at holder-2.2.min.js:10
at XMLDocument.h (holder-2.2.min.js:10)
Code in question:
(async () => {
let count = 0;
for await (const commit of fetchCommits('javascript-tutorial/en.javascript.info')) {
console.log(commit.author.login);
if (++count == 100) { // let's stop at 100 commits
break;
}
}
})();
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Async Generators and Iterators の記事を開き、「An example of use」スニペットと、その Open in Sandbox および run リンクを確認してください。報告されているエラーを再現し、その後、fetchCommits が利用可能になり、Holder エラーなしでコードが実行されるように、例またはリンク先のサンプルを更新してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100