Skip to content

Commit

Permalink
Fix this binding error within eval and arrow function
Browse files Browse the repository at this point in the history
Signed-off-by: HyukWoo Park <[email protected]>
  • Loading branch information
clover2123 authored and ksh8281 committed Sep 12, 2024
1 parent 0eac4dc commit 0434ba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parser/CodeBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ bool InterpretedCodeBlock::needsToLoadThisBindingFromEnvironment()
if (isArrowFunctionExpression()) {
InterpretedCodeBlock* cb = m_parent;
while (cb) {
if (cb->isArrowFunctionExpression()) {
if (cb->isArrowFunctionExpression() || cb->isEvalCode()) {
// pass through
} else if (cb->isClassConstructor()) {
return true;
Expand Down
2 changes: 1 addition & 1 deletion test/vendortest

0 comments on commit 0434ba9

Please sign in to comment.