강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

shut up and squat님의 프로필 이미지
shut up and squat

작성한 질문수

코어 자바스크립트

this

질문드립니다.

작성

·

196

1

항상 잘보고 있습니다. 

 화살표 함수에서 this를 바인딩 하지 않는 다고 하셨는데 그럼 화살표함수는 실행컨텍스트가 활성화 될 때  this바인딩에 대한 내용이 빠지는 건가요...? 

아 그리고 오탈자 발견했습니다.

18:04 한수라고 표기되어 있습니다. 

답변 1

1

정재남님의 프로필 이미지
정재남
지식공유자

넵. 그밖에도 arguments, super, this, new.target 등의 바인딩도 모두 빠집니다.

An ArrowFunction does not define local bindings for argumentssuperthis, or new.target. Any reference to argumentssuperthis, or new.target within an ArrowFunction must resolve to a binding in a lexically enclosing environment. Typically this will be the Function Environment of an immediately enclosing function. Even though an ArrowFunction may contain references to super, the function object created in step 5 is not made into a method by performing MakeMethod. An ArrowFunction that references super is always contained within a non-ArrowFunction and the necessary state to implement super is accessible via the scope that is captured by the function object of the ArrowFunction.

https://tc39.es/ecma262/#sec-arrow-function-definitions

shut up and squat님의 프로필 이미지
shut up and squat

작성한 질문수

질문하기