Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

eval 번역 및 수정사항 반영#316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
1000peach wants to merge1 commit intojavascript-tutorial:masterfrom1000peach:Eval
Closed

eval 번역 및 수정사항 반영#316

1000peach wants to merge1 commit intojavascript-tutorial:masterfrom1000peach:Eval

Conversation

1000peach
Copy link
Contributor

eval/article.md 수정사항 반영 후 force 해서 다시 PR 작성합니다. 확인 부탁드립니다. :-)


Code minifiers (tools used before JS gets to production, to compress it) rename local variables into shorter ones (like`a`, `b` etc) to make the code smaller. That's usually safe, but not if`eval` is used, as local variables may be accessed from eval'ed code string. So minifiers don't do that renaming for all variables potentially visible from `eval`. That negatively affects code compression ratio.
애플리케이션이 출시 되기 전에 자바스크립트 파일을 압축해주는 도구인 코드 압축기(minifier)는 스크립트 크기를 줄이기 위해 지역 변수명을`a` `b`같이 짧게 변경합니다. 대게는 이 과정에서 부작용이 발생하지 않지만, `eval`을 사용하면`eval`로 감싼 코드에서 지역 변수에 접근할 수 있으므로 안전하지 않습니다. 이런 위험을 방지하기 위해 압축기는 `eval` 내부 코드에서 접근할 가능성이 있는 모든 변수의 이름을 변경하지 않습니다. 이는 코드 압축률에 부정적인 영향을 미칩니다.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
애플리케이션이 출시 되기 전에 자바스크립트 파일을 압축해주는 도구인 코드 압축기(minifier)는 스크립트 크기를 줄이기 위해 지역 변수명을`a``b`같이 짧게 변경합니다.대게는 이 과정에서 부작용이 발생하지 않지만,`eval`을 사용하면`eval`로 감싼 코드에서 지역 변수에 접근할 수 있으므로 안전하지 않습니다. 이런 위험을 방지하기 위해 압축기는`eval` 내부 코드에서 접근할 가능성이 있는 모든 변수의 이름을 변경하지 않습니다. 이는 코드 압축률에 부정적인 영향을 미칩니다.
애플리케이션이 출시 되기 전에 자바스크립트 파일을 압축해주는 도구인 코드 압축기(minifier)는 스크립트 크기를 줄이기 위해 지역 변수명을`a``b`같이 짧게 변경합니다.대개는 이 과정에서 부작용이 발생하지 않지만,`eval`을 사용하면`eval`로 감싼 코드에서 지역 변수에 접근할 수 있으므로 안전하지 않습니다. 이런 위험을 방지하기 위해 압축기는`eval` 내부 코드에서 접근할 가능성이 있는 모든 변수의 이름을 변경하지 않습니다. 이는 코드 압축률에 부정적인 영향을 미칩니다.

Violet-Bora-Lee reacted with thumbs up emoji

Choose a reason for hiding this comment

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

매번 저 단어 실수하는것같아요 ㅠㅠㅠ 제가 suggestion 했던거였어요

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

매번 저 단어 실수하는것같아요 ㅠㅠㅠ 제가 suggestion 했던거였어요

헉 그러게요 ㅠㅠㅠ 다시 올리겠습니다!

@Violet-Bora-Lee
Copy link
Member

@1000peach 수정부탁드릴게요

@1000peach1000peach deleted the Eval branchOctober 20, 2019 09:12
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@Violet-Bora-LeeViolet-Bora-LeeViolet-Bora-Lee left review comments

@JuYeong0413JuYeong0413JuYeong0413 left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@1000peach@Violet-Bora-Lee@JuYeong0413@javascript-translate-bot

[8]ページ先頭

©2009-2025 Movatter.jp