Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[문제] VariableEnvironment VS LexicalEnviroment의 차이는 무엇인가요? #9

Open
live-small opened this issue Aug 21, 2021 · 1 comment
Labels

Comments

@live-small
Copy link
Owner

live-small commented Aug 21, 2021

질문

실행컨텍스트 컴포넌트인 VariableEnvironment LexicalEnviroment의 차이가 궁금합니다.

상세내용

[23장 p367]
생성초기에 두 컴포넌트는 하나의 동일한 렉시컬 환경을 참조한다. 이후 몇 가지 상황을 만나면
VariableEnvironment컴포넌트를 위한 새로운 렉시컬 환경을 생성하여, 이때부터 두 컴포넌트의 내용이 달라지는 경우도 있다.

해당 책은 두 컴포넌트를 구분하지 않고 렉시컬 환경으로 통일해 간략히 설명했는데요,
두 컴포넌트의 차이점이 궁금합니다.

관련 챕터

23장 p367

참고

@mortal-link
Copy link

let and const declarations define variables that are scoped to the running execution context's LexicalEnvironment
in ECMAScript Specification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants