-
카테고리
-
세부 분야
프로그래밍 언어
-
해결 여부
미해결
질문드립니다.
21.08.28 17:08 작성 조회수 132
0
항상 잘보고 있습니다.
화살표 함수에서 this를 바인딩 하지 않는 다고 하셨는데 그럼 화살표함수는 실행컨텍스트가 활성화 될 때 this바인딩에 대한 내용이 빠지는 건가요...?
아 그리고 오탈자 발견했습니다.
18:04 한수라고 표기되어 있습니다.
답변을 작성해보세요.
1
정재남
지식공유자2021.08.28
넵. 그밖에도 arguments, super, this, new.target 등의 바인딩도 모두 빠집니다.
An <emu-nt id="_ref_17148" style="display:inline-block;font-style:italic;white-space:nowrap;color:#111111;font-family:Cambria, 'Palatino Linotype', Palatino, 'Liberation Serif', serif;font-size:18px;background-color:#e9fbe9"><a href="https://tc39.es/ecma262/#prod-ArrowFunction" target="_blank" rel="noopener noreferrer">ArrowFunction</a></emu-nt> does not define local bindings for arguments
, super
, this
, or new.target
. Any reference to arguments
, super
, this
, or new.target
within an <emu-nt id="_ref_17149" style="display:inline-block;font-style:italic;white-space:nowrap;color:#111111;font-family:Cambria, 'Palatino Linotype', Palatino, 'Liberation Serif', serif;font-size:18px;background-color:#e9fbe9"><a href="https://tc39.es/ecma262/#prod-ArrowFunction" target="_blank" rel="noopener noreferrer">ArrowFunction</a></emu-nt> 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 <emu-nt id="_ref_17150" style="display:inline-block;font-style:italic;white-space:nowrap;color:#111111;font-family:Cambria, 'Palatino Linotype', Palatino, 'Liberation Serif', serif;font-size:18px;background-color:#e9fbe9"><a href="https://tc39.es/ecma262/#prod-ArrowFunction" target="_blank" rel="noopener noreferrer">ArrowFunction</a></emu-nt> may contain references to super
, the <emu-xref href="#function-object" id="_ref_5815" style="color:#111111;font-family:Cambria, 'Palatino Linotype', Palatino, 'Liberation Serif', serif;font-size:18px;background-color:#e9fbe9"><a href="https://tc39.es/ecma262/#function-object" target="_blank" rel="noopener noreferrer">function object</a></emu-xref> created in step <emu-xref href="#step-arrowfunction-evaluation-functioncreate" id="_ref_462" style="color:#111111;font-family:Cambria, 'Palatino Linotype', Palatino, 'Liberation Serif', serif;font-size:18px;background-color:#e9fbe9"><a href="https://tc39.es/ecma262/#step-arrowfunction-evaluation-functioncreate" target="_blank" rel="noopener noreferrer">5</a></emu-xref> is not made into a method by performing <emu-xref aoid="MakeMethod" id="_ref_5816" style="color:#111111;font-family:Cambria, 'Palatino Linotype', Palatino, 'Liberation Serif', serif;font-size:18px;background-color:#e9fbe9"><a href="https://tc39.es/ecma262/#sec-makemethod" target="_blank" rel="noopener noreferrer">MakeMethod</a></emu-xref>. An <emu-nt id="_ref_17151" style="display:inline-block;font-style:italic;white-space:nowrap;color:#111111;font-family:Cambria, 'Palatino Linotype', Palatino, 'Liberation Serif', serif;font-size:18px;background-color:#e9fbe9"><a href="https://tc39.es/ecma262/#prod-ArrowFunction" target="_blank" rel="noopener noreferrer">ArrowFunction</a></emu-nt> that references super
is always contained within a non-<emu-nt id="_ref_17152" style="display:inline-block;font-style:italic;white-space:nowrap;color:#111111;font-family:Cambria, 'Palatino Linotype', Palatino, 'Liberation Serif', serif;font-size:18px;background-color:#e9fbe9"><a href="https://tc39.es/ecma262/#prod-ArrowFunction" target="_blank" rel="noopener noreferrer">ArrowFunction</a></emu-nt> and the necessary state to implement super
is accessible via the scope that is captured by the <emu-xref href="#function-object" id="_ref_5817" style="color:#111111;font-family:Cambria, 'Palatino Linotype', Palatino, 'Liberation Serif', serif;font-size:18px;background-color:#e9fbe9"><a href="https://tc39.es/ecma262/#function-object" target="_blank" rel="noopener noreferrer">function object</a></emu-xref> of the <emu-nt id="_ref_17153" style="display:inline-block;font-style:italic;white-space:nowrap;color:#111111;font-family:Cambria, 'Palatino Linotype', Palatino, 'Liberation Serif', serif;font-size:18px;background-color:#e9fbe9"><a href="https://tc39.es/ecma262/#prod-ArrowFunction" target="_blank" rel="noopener noreferrer">ArrowFunction</a></emu-nt>.
답변 1