Skip to content

Commit a9a1c70

Browse files
Fix bug with _ReuseLoc opcode
1 parent ba32362 commit a9a1c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Runtime/ByteCode/ByteCodeEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11715,7 +11715,7 @@ void Emit(ParseNode* pnode, ByteCodeGenerator* byteCodeGenerator, FuncInfo* func
1171511715
}
1171611716
else
1171711717
{
11718-
byteCodeGenerator->Writer()->PatchableProperty(Js::OpCode::LdFld, pnode->location, callObjLocation, cacheId, isConstructorCall);
11718+
byteCodeGenerator->Writer()->PatchableProperty(pnode->isUsed ? Js::OpCode::LdFld_ReuseLoc : Js::OpCode::LdFld, pnode->location, callObjLocation, cacheId, isConstructorCall);
1171911719
}
1172011720

1172111721
break;

0 commit comments

Comments
 (0)