Skip to content

[문서] 10, 12 충돌 해결 및 미번역분 번역(C19)#1875

Open
wonza-hub wants to merge 5 commits into
javascript-tutorial:2026-en-mergefrom
wonza-hub:sync-c19
Open

[문서] 10, 12 충돌 해결 및 미번역분 번역(C19)#1875
wonza-hub wants to merge 5 commits into
javascript-tutorial:2026-en-mergefrom
wonza-hub:sync-c19

Conversation

@wonza-hub
Copy link
Copy Markdown

요약

수정 파일

10. 에러 핸들링

  • 1-js/10-error-handling/1-try-catch/article.md
  • 1-js/10-error-handling/1-try-catch/1-finally-or-code-after/solution.md
  • 1-js/10-error-handling/1-try-catch/1-finally-or-code-after/task.md
  • 1-js/10-error-handling/2-custom-errors/article.md

12. 제너레이터와 비동기 이터레이션

  • 1-js/12-generators-iterators/1-generators/article.md
  • 1-js/12-generators-iterators/2-async-iterators-generators/article.md

작업 내용

에러 핸들링 챕터

  • upstream 변경사항과의 충돌 마커 제거 및 번역 동기화
  • try-catch 본문: 영문 원문 기준으로 내용 재편성 및 누락 번역 반영
  • finally 과제·풀이: upstream에서 삭제된 내용 반영

제너레이터 챕터

  • 1-generators: generator.return() 동작 설명 번역 추가 및 미완성 placeholder 제거
  • 2-async-iterators-generators: 섹션 순서를 영문 원문 기준으로 재편성 (해당 챕터는 변경 사항이 많아 새로 번역한 부분이 많습니다.)
    • 신규 섹션 번역 추가: 이터러블 복습, 제너레이터 복습, async 이터러블 range 도입부
    • upstream에서 삭제·변경된 내용 반영 (fetchCommits 예시 구조 변경 등)
    • 코드 포맷 정리 (따옴표 통일, 비교 표 열 정렬)

미리보기

로컬 서버(Docker)에서 변경 후의 결과를 검증했습니다.

try...catch와 에러 핸들링

try-catch 미리보기

async 이터레이터와 제너레이터

async-iterators-generators 미리보기

참고

AI 활용

  • 번역 누락 검토 및 충돌 해결 과정에서 Claude(claude.ai)를 보조 도구로 활용하였습니다.
  • 의역 과정에서 Claude, Gemini를 보조 도구로 활용하였습니다.

연관 이슈

Pull Request 체크리스트

TODO

  • 번역 규칙을
    확인하셨나요?
    • 줄 바꿈과 단락을 '원문과 동일하게' 유지하셨나요?
    • 맞춤법 검사기로 맞춤법을 확인하셨나요?
    • 마크다운 문법에 사용되는 공백(스페이스), 큰따옴표("), 작은따옴표('), 대시(-), 백틱(`) 등의 특수문자는 그대로
      두셨나요?
    • 로컬 서버 세팅 후 최종 결과물을 확인해 보셨나요?
  • PR 하나엔 번역문 하나만 넣으셨나요?
  • 의미 있는 커밋 메시지를 작성하셨나요?

wonza-hub and others added 5 commits May 15, 2026 11:41
…nerators

- 충돌 마커(<<<<<<< HEAD 등) 전체 제거
- 섹션 순서를 영어 원문 기준으로 재편성
  - 기존: async 이터레이터 -> async 제너레이터 -> async 이터러블 -> 실제 사례
  - 변경: 이터러블 복습 -> async 이터러블 -> 제너레이터 복습 -> async 제너레이터
          -> async 이터러블 range -> 실제 사례: 페이지네이션된 데이터 -> 요약
- 원문에만 있던 신규 섹션 번역 추가
  (이터러블 복습, 제너레이터 복습, async 이터러블 range 도입부, 실제 사례 설명 등)
- 원문에서 삭제·변경된 내용 반영
  (기존 번역 문단 일부 제거, fetchCommits 예시 코드 및 설명 구조 변경)
- 코드 포맷 정리 (따옴표 통일, 들여쓰기, 비교 표 열 정렬 등)

- generator.return() 동작 설명 번역 추가 및 미완성 placeholder 제거

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@wonza-hub
Copy link
Copy Markdown
Author

wonza-hub commented May 21, 2026

@sohxxny 님, 12. 제너레이터와 비동기 이터레이션 부분 리뷰 부탁드립니다!
12.2 부분은 다소 변경분이 많은 점 양해부탁드리며, 리뷰 중에 물어보고 싶은 거 있으시면 편하게 DM 주세요:)
감사합니다.

@wonza-hub
Copy link
Copy Markdown
Author

@BHyeonKim 님, 10. 에러 핸들링 부분 리뷰 부탁드립니다!
리뷰 중에 물어보고 싶은 거 있으시면 편하게 DM 주세요:)
감사합니다.

Copy link
Copy Markdown

@BHyeonKim BHyeonKim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10-error-handling 파트 리뷰하였습니다.
try...catch문의 e 변수가 원문에서는 err로 업데이트 된 것 같아 확인이 필요합니다.

고생하셨습니다!😊

Comment on lines -157 to -168
} catch (err) {
alert( "won't work" );
}
```

That's because the function itself is executed later, when the engine has already left the `try...catch` construct.

To catch an exception inside a scheduled function, `try...catch` must be inside that function:
```js run
setTimeout(function() {
try {
noSuchVariable; // try...catch handles the error!
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분 번역이 누락된 것 같아서 확인이 필요할 것 같습니다!

Image

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

원문에서는 설명을 위해 '정의하지 않은 변수'의 대명사로서 noSuchVariable이라는 변수를 사용한 것 같은데, 이 부분을 번역해야 하는 지는 의문이 남습니다.
혹시 번역 가이드에 이와 관련하여 참고할 만한 사항을 아신다면 공유해주시면 감사하겠습니다:)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

번역이 누락된줄 알았는데 다시 확인해보니 정상적으로 번역되있습니다.
혼동을 드려서 죄송합니다.🥲

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

괜찮습니다!
제 기억으로는 이와 비슷한 경우에 자연스러움을 위해 한글로 변수를 적은 챕터가 있었던 것 같은데 확실치는 않네요:)

*/!*

<<<<<<< HEAD
} catch (e) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upstream에서는 e => err로 변수명을 변경한 것 같습니다.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다시 확인해보니 upstream 에서 일괄 변경한 것 같네요! 짚어주셔서 감사합니다:)

try {
<<<<<<< HEAD
JSON.parse("{ 잘못된 형식의 json o_O }");
} catch(e) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upstream에서는 e => err로 변수명을 변경한 것 같습니다.

Comment on lines 326 to 327
} catch(e) {
alert( "JSON Error: " + e.message ); // JSON Error: 불완전한 데이터: 이름 없음
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upstream에서는 e => err로 변수명을 변경한 것 같습니다.

*!*try*/!* {
<<<<<<< HEAD
... 코드를 실행 ...
} *!*catch*/!*(e) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upstream에서는 e => err로 변수명을 변경한 것 같습니다.

<<<<<<< HEAD
alert( 'try 블록 시작' );
if (confirm('에러를 만드시겠습니까?')) 이상한_코드();
} catch (e) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upstream에서는 e => err로 변수명을 변경한 것 같습니다.

Comment on lines -24 to -32
<<<<<<< HEAD
`ValidationError` 클래스엔 문제가 되는 필드 정보가 저장되어야 합니다. 내장 클래스 `Error`를 상속받아 `ValidationError` 클래스를 만들어봅시다.

그 전에 먼저 잠시 슈도 코드로 `Error` 클래스가 어떻게 생겼는지 살펴보겠습니다.
=======
Our `ValidationError` class should inherit from the `Error` class.

The `Error` class is built-in, but here's its approximate code so we can understand what we're extending:
>>>>>>> upstream/master
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

의미상 같으나 영문과 한글이 1대1 매칭이 안되는 것 같습니다.
어떻게 생각하시나요?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분 제가 놓친 것 같아요.
감사합니다:)

@javascript-translate-bot
Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

4 similar comments
@javascript-translate-bot
Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

@javascript-translate-bot
Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

@javascript-translate-bot
Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

@javascript-translate-bot
Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants